Skip to content

Commit a32bd46

Browse files
ernjvryadvr
authored andcommitted
ui: show reset SSH key for VM in running state (#2778)
In the UI, on the Instances screen, the Quickview popup window and the Details window do not display the 'Reset SSH Key Pair' button for VMs in a running state. They only display when the VM is in a stopped state. This is inconsistent with the 'Reset Password' button behaviour, where it displays in both VM states: running and stopped. This fixes the issue so that the 'Reset SSH Key Pair' button also displays in both VM states. Expected Behaviour: In the UI, on the Instances screen, the Quickview popup window and the Details window must display the 'Reset SSH Key Pair' button in both VM states: running and stopped. When a user clicks on the 'Reset SSH Key Pair' button and a VM is in a running state, it will display a message "Vm xxx should be stopped to do SSH Key reset". Actual Behaviour: In the UI, on the Instances screen, the Quickview popup window and the Details window do not display the 'Reset SSH Key Pair' button for VMs in a running state. It only displays when the VM is in a stopped state.
1 parent 71bbbb7 commit a32bd46

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ui/scripts/instances.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3243,6 +3243,7 @@
32433243
}
32443244

32453245
allowedActions.push("viewConsole");
3246+
allowedActions.push("resetSSHKeyForVirtualMachine");
32463247
} else if (jsonObj.state == 'Stopped') {
32473248
allowedActions.push("edit");
32483249
if (isAdmin())

0 commit comments

Comments
 (0)