Add column visibility menu to activities and API keys tables, and make related person optional when creating an activity

This commit is contained in:
2026-10-06 13:35:13 +03:30
parent 0d7555f219
commit 5074c6d791
4 changed files with 84 additions and 18 deletions
+9
View File
@@ -159,6 +159,15 @@ declare module 'vue' {
}
}
/** برای جدول‌های غیر `<table>` (مثلاً گرید div) که ستون‌هایشان را خودشان پنهان می‌کنند. */
export function registerTableColumns(key: string, labels: string[]) {
ensureInit();
const prev = labelsByTable[key];
if (!prev || prev.length !== labels.length || prev.some((v, i) => v !== labels[i])) {
labelsByTable[key] = labels;
}
}
export function useTableColumns(table: () => string) {
ensureInit();
const columns = () =>