Browse Source

wip(gui-v2): lock menu

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2860/head
Pranav C 2 years ago
parent
commit
0a146c14dc
  1. 10
      packages/nc-gui-v2/components/smartsheet-toolbar/LockMenu.vue

10
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`)
}
</script>
<template>
@ -62,7 +71,6 @@ const Icon = computed(() => {
<div class="nc-menu-item">
<MdiCheckIcon v-if="!vModel || vModel === LockType.Collaborative" />
<span v-else />
<div>
<MdiAccountGroupIcon />
Collaborative view

Loading…
Cancel
Save