From 0a146c14dc9fa7cbf686fe21bce91bb6c85b54da Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 28 Jul 2022 14:25:36 +0530 Subject: [PATCH] wip(gui-v2): lock menu Signed-off-by: Pranav C --- .../components/smartsheet-toolbar/LockMenu.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue index de9f1e931e..55a6b74351 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue @@ -49,6 +49,15 @@ const Icon = computed(() => { return MdiAccountGroupIcon } }) + +const changeLockType = (type) => { + $e('a:grid:lockmenu', { lockType: type }) + if (type === 'personal') { + return toast.info('Coming soon') + } + // $emit('input', type); + toast.success(`Successfully Switched to ${type} view`) +}