mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-07 22:56:07 +08:00
Lint fixes
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -94,7 +94,7 @@ export default {
|
||||
|
||||
const backupList = this.$store.getters['harvester/all'](HCI.BACKUP);
|
||||
|
||||
return backupList.find( O => O.name === name);
|
||||
return backupList.find( (O) => O.name === name);
|
||||
},
|
||||
|
||||
disableExisting() {
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
snapshotNamespace() {
|
||||
const backupList = this.$store.getters['harvester/all'](HCI.BACKUP);
|
||||
|
||||
return backupList.find( B => B.metadata.name === this.snapshotName)?.metadata?.namespace;
|
||||
return backupList.find( (B) => B.metadata.name === this.snapshotName)?.metadata?.namespace;
|
||||
},
|
||||
|
||||
namespaces() {
|
||||
@@ -113,7 +113,7 @@ export default {
|
||||
const systemNamespaces = this.$store.getters['systemNamespaces'];
|
||||
|
||||
const out = sortBy(
|
||||
choices.filter(N => !systemNamespaces.includes(N.metadata.name)).map((obj) => {
|
||||
choices.filter((N) => !systemNamespaces.includes(N.metadata.name)).map((obj) => {
|
||||
return {
|
||||
label: obj.nameDisplay,
|
||||
value: obj.id,
|
||||
@@ -239,12 +239,28 @@ export default {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<LabeledSelect v-model:value="snapshotName" class="mb-20" :label="t('harvester.vmSnapshot.snapshot')" :options="snapshotOption" />
|
||||
<LabeledSelect
|
||||
v-model:value="snapshotName"
|
||||
class="mb-20"
|
||||
:label="t('harvester.vmSnapshot.snapshot')"
|
||||
:options="snapshotOption"
|
||||
/>
|
||||
|
||||
<LabeledSelect v-if="!restoreNewVm" v-model:value="deletionPolicy" :label="t('harvester.backup.restore.deletePreviousVolumes')" :options="deletionPolicyOption" />
|
||||
<LabeledSelect
|
||||
v-if="!restoreNewVm"
|
||||
v-model:value="deletionPolicy"
|
||||
:label="t('harvester.backup.restore.deletePreviousVolumes')"
|
||||
:options="deletionPolicyOption"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Footer mode="create" class="footer" :errors="errors" @save="saveRestore" @done="cancelAction" />
|
||||
<Footer
|
||||
mode="create"
|
||||
class="footer"
|
||||
:errors="errors"
|
||||
@save="saveRestore"
|
||||
@done="cancelAction"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user