mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-15 14:11:46 +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() {
|
softReboot() {
|
||||||
this.vmResource.doSoftReboot();
|
this.vmResource.doSoftReboot();
|
||||||
},
|
},
|
||||||
@ -306,6 +310,13 @@ export default {
|
|||||||
{{ t("harvester.action.softreboot") }}
|
{{ t("harvester.action.softreboot") }}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="btn btn-sm bg-primary"
|
||||||
|
@click="reconnect"
|
||||||
|
>
|
||||||
|
{{ t("harvester.action.reconnect") }}
|
||||||
|
</button>
|
||||||
|
|
||||||
<v-dropdown
|
<v-dropdown
|
||||||
v-if="!hideCustomKeysBar"
|
v-if="!hideCustomKeysBar"
|
||||||
ref="customKeyPopover"
|
ref="customKeyPopover"
|
||||||
|
|||||||
@ -236,6 +236,7 @@ harvester:
|
|||||||
shutdown: Shut Down
|
shutdown: Shut Down
|
||||||
powerOn: Power On
|
powerOn: Power On
|
||||||
reboot: Reboot
|
reboot: Reboot
|
||||||
|
reconnect: Reconnect
|
||||||
forceStop: Force Stop
|
forceStop: Force Stop
|
||||||
formatters:
|
formatters:
|
||||||
hardwareResourceGauge:
|
hardwareResourceGauge:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user