Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:00:47 +02:00
parent 4f2688f6ab
commit c983ed8384
101 changed files with 186 additions and 189 deletions
@@ -5,9 +5,9 @@ import MessageLink from '@shell/components/MessageLink';
import Masthead from '@shell/components/ResourceList/Masthead';
import ResourceTable from '@shell/components/ResourceTable';
import { STATE, AGE, NAME, NAMESPACE } from '@shell/config/table-headers';
import { HCI } from '../types';
import { allSettled } from '../utils/promise';
import { STATE, AGE, NAME, NAMESPACE } from '@shell/config/table-headers';
import { BACKUP_TYPE } from '../config/types';
export default {
@@ -35,7 +35,7 @@ export default {
this.settings = hash.settings;
if (this.$store.getters[`${ inStore }/schemaFor`](HCI.SETTING)) {
const backupTargetResource = hash.settings.find( (O) => O.id === 'backup-target');
const backupTargetResource = hash.settings.find( O => O.id === 'backup-target');
const isEmpty = this.getBackupTargetValueIsEmpty(backupTargetResource);
if (backupTargetResource && !isEmpty) {
@@ -134,15 +134,15 @@ export default {
},
hasBackupProgresses() {
return !!this.rows.find((R) => R.status?.progress !== undefined);
return !!this.rows.find(R => R.status?.progress !== undefined);
},
filteredRows() {
return this.rows.filter((R) => R.spec?.type !== BACKUP_TYPE.SNAPSHOT);
return this.rows.filter(R => R.spec?.type !== BACKUP_TYPE.SNAPSHOT);
},
backupTargetResource() {
return this.settings.find( (O) => O.id === 'backup-target');
return this.settings.find( O => O.id === 'backup-target');
},
isEmptyValue() {