From 8410f758592221e4ad2bed254a142d82a0b506b5 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 12 May 2025 10:48:01 +0800 Subject: [PATCH] Remove unneeded condition (#279) Signed-off-by: Andy Lee --- .../edit/kubevirt.io.virtualmachine/VirtualMachineSSHKey.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineSSHKey.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineSSHKey.vue index f3437726..c0eeaef8 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineSSHKey.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineSSHKey.vue @@ -6,7 +6,7 @@ import { LabeledInput } from '@components/Form/LabeledInput'; import LabeledSelect from '@shell/components/form/LabeledSelect'; import ModalWithCard from '@shell/components/ModalWithCard'; -import { _VIEW, _EDIT } from '@shell/config/query-params'; +import { _VIEW } from '@shell/config/query-params'; import { NAMESPACE } from '@shell/config/types'; import { HCI } from '../../types'; @@ -90,9 +90,6 @@ export default { }, sshOption() { - if (this.mode === _VIEW || this.mode === _EDIT) { - return []; - } const out = this.$store.getters['harvester/all'](HCI.SSH).map( (O) => { return { label: O.id,