fix: reboot button not work in VNC console (#475) (#479)

* fix: reboot button in VNC console



* style: hide the arrow in VNC console



---------


(cherry picked from commit 905db4b12c155af54a4926d4e4980b7d4616fa40)

Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot] 2025-08-27 15:37:00 +08:00 committed by GitHub
parent 19b6842b21
commit 4cc60e22a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View File

@ -258,7 +258,7 @@ export default {
}, },
softReboot() { softReboot() {
this.vmResource.softrebootVM(); this.vmResource.doSoftReboot();
}, },
showKeysModal() { showKeysModal() {
@ -372,3 +372,12 @@ export default {
background: rgb(40, 40, 40); background: rgb(40, 40, 40);
} }
</style> </style>
<style lang="scss">
.vm-console .v-popper__arrow-container {
display: none;
}
.vm-console .v-popper__popper{
margin-top: 8px;
}
</style>

View File

@ -327,6 +327,10 @@ export default class VirtVm extends HarvesterResource {
}); });
} }
doSoftReboot() {
this.doActionGrowl('softreboot', {});
}
softrebootVM(resources = this) { softrebootVM(resources = this) {
this.$dispatch('promptModal', { this.$dispatch('promptModal', {
resources, resources,