Add column visibility menu to activities and API keys tables, and make related person optional when creating an activity
This commit is contained in:
@@ -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 = () =>
|
||||
|
||||
Reference in New Issue
Block a user