mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Lint fixes
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -59,7 +59,7 @@ export default class HciVmBackup extends HarvesterResource {
|
||||
const schema = this.$getters['schemaFor'](HCI.VM);
|
||||
let canCreateVM = true;
|
||||
|
||||
if ( schema && !schema?.collectionMethods.find(x => ['post'].includes(x.toLowerCase())) ) {
|
||||
if ( schema && !schema?.collectionMethods.find((x) => ['post'].includes(x.toLowerCase())) ) {
|
||||
canCreateVM = false;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ export default class HciVmBackup extends HarvesterResource {
|
||||
get attachVmExisting() {
|
||||
const vmList = this.$rootGetters['harvester/all'](HCI.VM);
|
||||
|
||||
return !!vmList.find( V => V.metadata.name === this.attachVM);
|
||||
return !!vmList.find( (V) => V.metadata.name === this.attachVM);
|
||||
}
|
||||
|
||||
remove() {
|
||||
|
||||
Reference in New Issue
Block a user