mirror of https://github.com/rancher/dashboard.git
remove getIcon prop
This commit is contained in:
parent
fa4222adc1
commit
36a58022f0
|
|
@ -27,18 +27,10 @@ export default {
|
|||
type: String,
|
||||
default: null,
|
||||
},
|
||||
|
||||
getIcon: {
|
||||
type: Function,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
displayClass() {
|
||||
if (this.getIcon) {
|
||||
return this.getIcon(this.row);
|
||||
}
|
||||
if ( this.iconKey ) {
|
||||
return get(this.row, this.iconKey);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,8 +137,8 @@ export function init(store) {
|
|||
{
|
||||
name: 'isDefault',
|
||||
labelKey: 'tableHeaders.default',
|
||||
formatter: 'IconText',
|
||||
formatterOpts: { getIcon: row => row.isCustom ? 'icon-checkmark icon-2x' : 'icon-x icon-2x' }
|
||||
formatter: 'Checked',
|
||||
value: 'isDefault'
|
||||
},
|
||||
AGE
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ export default {
|
|||
};
|
||||
},
|
||||
|
||||
isCustom() {
|
||||
isDefault() {
|
||||
const { relationships = [] } = this.metadata;
|
||||
|
||||
if (!relationships) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
return relationships.filter(rel => rel.fromType === CATALOG.APP ).length > 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue