compute: hide `reset SSH keypair` button if VM is not Stopped (#646)

Fixes #643

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Hoang Nguyen 2020-09-01 17:40:11 +07:00 committed by Rohit Yadav
parent 8d0c47b012
commit b5a0380409
1 changed files with 1 additions and 1 deletions

View File

@ -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',