From 612de5c9d0ebf767bb2128b4605e07e0c3e0aa36 Mon Sep 17 00:00:00 2001 From: Alastair Ong Date: Mon, 3 Jun 2024 12:33:12 +0100 Subject: [PATCH 1/3] enable ssh button --- .../settings/SettingsHoloportSection.vue | 8 ++++++-- src/interfaces/HposInterface.ts | 17 +++++++++++++++++ src/pages/SettingsPage.vue | 5 +++++ src/store/user.ts | 7 ++++++- ui-common-library | 2 +- 5 files changed, 35 insertions(+), 4 deletions(-) diff --git a/src/components/settings/SettingsHoloportSection.vue b/src/components/settings/SettingsHoloportSection.vue index cfff209a..eee2f465 100644 --- a/src/components/settings/SettingsHoloportSection.vue +++ b/src/components/settings/SettingsHoloportSection.vue @@ -19,7 +19,7 @@ const props = withDefaults( } ) -const emit = defineEmits(['update:device-name']) +const emit = defineEmits(['update:device-name', 'update:ssh-access']) const isEditingDeviceName = ref(false) const editedDeviceName = ref('') @@ -38,6 +38,10 @@ function cancelEditDeviceName(): void { isEditingDeviceName.value = false editedDeviceName.value = '' } + +function toggleSshAccess(): void { + emit('update:ssh-access', !props.settings.sshAccess) +}