diff --git a/src/components/settings/SettingsHoloportSection.vue b/src/components/settings/SettingsHoloportSection.vue index cfff209..eee2f46 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) +}