mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-03 20:56:06 +08:00
Lint fixes
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -47,7 +47,7 @@ export default class VirtVmInstance extends HarvesterResource {
|
||||
|
||||
get vmimResource() {
|
||||
const all = this.$rootGetters['harvester/all'](HCI.VMIM) || [];
|
||||
const vmimList = all.filter(vmim => vmim.spec?.vmiName === this.metadata?.name);
|
||||
const vmimList = all.filter((vmim) => vmim.spec?.vmiName === this.metadata?.name);
|
||||
|
||||
if (vmimList.length === 0) {
|
||||
return [];
|
||||
@@ -88,7 +88,7 @@ export default class VirtVmInstance extends HarvesterResource {
|
||||
|
||||
get isPaused() {
|
||||
const conditions = this?.status?.conditions || [];
|
||||
const isPause = conditions.filter(cond => cond.type === PAUSED).length > 0;
|
||||
const isPause = conditions.filter((cond) => cond.type === PAUSED).length > 0;
|
||||
|
||||
return isPause ? {
|
||||
status: PAUSED,
|
||||
@@ -107,7 +107,7 @@ export default class VirtVmInstance extends HarvesterResource {
|
||||
get isTerminated() {
|
||||
const conditions = this?.status?.conditions || [];
|
||||
|
||||
return conditions.find(cond => cond.type === 'Ready')?.status === 'False';
|
||||
return conditions.find((cond) => cond.type === 'Ready')?.status === 'False';
|
||||
}
|
||||
|
||||
get getVMIApiPath() {
|
||||
|
||||
Reference in New Issue
Block a user