mirror of https://github.com/rancher/dashboard.git
19 lines
533 B
JavaScript
19 lines
533 B
JavaScript
import { CATALOG } from '@shell/config/types';
|
|
import SteveModel from '@shell/plugins/steve/steve-class';
|
|
|
|
export default class ClusterScanBenchmark extends SteveModel {
|
|
warnDeletionMessage(toRemove = []) {
|
|
return this.$rootGetters['i18n/t']('compliance.deleteBenchmarkWarning', { count: toRemove.length });
|
|
}
|
|
|
|
get isDefault() {
|
|
const { relationships = [] } = this.metadata;
|
|
|
|
if (!relationships) {
|
|
return false;
|
|
}
|
|
|
|
return relationships.filter((rel) => rel.fromType === CATALOG.APP ).length > 0;
|
|
}
|
|
}
|