Update RemoteDesktopModal.vue
This commit is contained in:
@@ -156,7 +156,7 @@ const connectRdp = async (useInputValues = false) => {
|
|||||||
disconnectRdp();
|
disconnectRdp();
|
||||||
};
|
};
|
||||||
|
|
||||||
guacClient.value.connect();
|
guacClient.value.connect(''); // Keep the '' change
|
||||||
|
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
statusMessage.value = `${t('remoteDesktopModal.errors.connectionFailed')}: ${error.response?.data?.message || error.message || String(error)}`;
|
statusMessage.value = `${t('remoteDesktopModal.errors.connectionFailed')}: ${error.response?.data?.message || error.message || String(error)}`;
|
||||||
@@ -290,9 +290,8 @@ watch(() => props.connection, (newConnection, oldConnection) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="fixed inset-0 z-50 flex items-center justify-center bg-overlay p-4 backdrop-blur-sm">
|
<div class="fixed inset-0 z-50 flex items-center justify-center bg-overlay p-4 backdrop-blur-sm">
|
||||||
<div
|
<div
|
||||||
:style="modalStyle"
|
:style="modalStyle"
|
||||||
class="bg-background text-foreground rounded-lg shadow-xl max-w-6xl max-h-[90vh] flex flex-col overflow-hidden border border-border"
|
class="bg-background text-foreground rounded-lg shadow-xl max-w-6xl max-h-[90vh] flex flex-col overflow-hidden border border-border"
|
||||||
@@ -375,19 +374,18 @@ watch(() => props.connection, (newConnection, oldConnection) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.rdp-display-container {
|
.rdp-display-container {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rdp-display-container :deep(div) {
|
.rdp-display-container :deep(div) {
|
||||||
}
|
}
|
||||||
|
|
||||||
.rdp-display-container :deep(canvas) {
|
.rdp-display-container :deep(canvas) {
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user