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

Loading…
Cancel
Save