fix: hide unrelated option

This commit is contained in:
mertmit
2025-03-21 09:33:19 +00:00
parent 85cff45337
commit 43f1d8cbe1

View File

@@ -611,7 +611,7 @@ async function onRename() {
</NcMenuItem>
<NcMenuItem
v-if="isUIAllowed('tableRename', { roles: baseRole, source })"
v-if="table?.synced && isUIAllowed('tableDelete', { roles: baseRole, source })"
:data-testid="`sidebar-table-sync-${table.title}`"
class="nc-table-sync"
@click="onSyncOptions"