mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 21:26:08 +08:00
Lint fixes
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -84,14 +84,14 @@ export default {
|
||||
},
|
||||
|
||||
hasBackupProgresses() {
|
||||
return !!this.rows.find(R => R.status?.progress !== undefined);
|
||||
return !!this.rows.find((R) => R.status?.progress !== undefined);
|
||||
},
|
||||
|
||||
filteredRows() {
|
||||
let r = this.rows.filter(row => row.spec?.type === BACKUP_TYPE.BACKUP);
|
||||
let r = this.rows.filter((row) => row.spec?.type === BACKUP_TYPE.BACKUP);
|
||||
|
||||
if (this.id) {
|
||||
r = r.filter(backup => backup.metadata.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID] === this.id);
|
||||
r = r.filter((backup) => backup.metadata.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID] === this.id);
|
||||
}
|
||||
|
||||
return r;
|
||||
|
||||
@@ -56,10 +56,10 @@ export default {
|
||||
},
|
||||
|
||||
filteredRows() {
|
||||
let r = this.rows.filter(row => row.spec?.type === BACKUP_TYPE.SNAPSHOT);
|
||||
let r = this.rows.filter((row) => row.spec?.type === BACKUP_TYPE.SNAPSHOT);
|
||||
|
||||
if (this.id) {
|
||||
r = r.filter(row => row.metadata.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID] === this.id);
|
||||
r = r.filter((row) => row.metadata.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID] === this.id);
|
||||
}
|
||||
|
||||
return r;
|
||||
|
||||
@@ -47,7 +47,11 @@ export default {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Tabbed v-bind="$attrs" class="mt-15" :side-tabs="true">
|
||||
<Tabbed
|
||||
v-bind="$attrs"
|
||||
class="mt-15"
|
||||
:side-tabs="true"
|
||||
>
|
||||
<Tab
|
||||
name="basic"
|
||||
:label="t('harvester.virtualMachine.detail.tabs.basics')"
|
||||
|
||||
Reference in New Issue
Block a user