mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
feat: add reconnect button in VNC console (#489)
* feat: add reconnect button in VNC console Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: reconnnect logic Signed-off-by: Andy Lee <andy.lee@suse.com> * refactor: call reconnnect Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
18be022a9f
commit
775330d829
@ -257,6 +257,10 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
reconnect() {
|
||||
this.$refs.novncConsole.reconnect();
|
||||
},
|
||||
|
||||
softReboot() {
|
||||
this.vmResource.doSoftReboot();
|
||||
},
|
||||
@ -306,6 +310,13 @@ export default {
|
||||
{{ t("harvester.action.softreboot") }}
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="btn btn-sm bg-primary"
|
||||
@click="reconnect"
|
||||
>
|
||||
{{ t("harvester.action.reconnect") }}
|
||||
</button>
|
||||
|
||||
<v-dropdown
|
||||
v-if="!hideCustomKeysBar"
|
||||
ref="customKeyPopover"
|
||||
|
||||
@ -236,6 +236,7 @@ harvester:
|
||||
shutdown: Shut Down
|
||||
powerOn: Power On
|
||||
reboot: Reboot
|
||||
reconnect: Reconnect
|
||||
forceStop: Force Stop
|
||||
formatters:
|
||||
hardwareResourceGauge:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user