From b5a0380409005c86828641dead33609e359c8b34 Mon Sep 17 00:00:00 2001 From: Hoang Nguyen Date: Tue, 1 Sep 2020 17:40:11 +0700 Subject: [PATCH] compute: hide `reset SSH keypair` button if VM is not Stopped (#646) Fixes #643 Signed-off-by: Rohit Yadav --- ui/src/config/section/compute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js index e411538139a..db43affcb9a 100644 --- a/ui/src/config/section/compute.js +++ b/ui/src/config/section/compute.js @@ -332,7 +332,7 @@ export default { docHelp: 'adminguide/virtual_machines.html#resetting-ssh-keys', dataView: true, args: ['keypair', 'account', 'domainid'], - show: (record) => { return ['Running', 'Stopped'].includes(record.state) }, + show: (record) => { return ['Stopped'].includes(record.state) }, mapping: { keypair: { api: 'listSSHKeyPairs',