feat(views/table): actually add attributes

This commit is contained in:
Elian Doran
2025-06-27 22:43:29 +03:00
parent fe1dbb4cbf
commit 0fb0be4ffc
5 changed files with 30 additions and 14 deletions

View File

@@ -166,4 +166,13 @@ export default class NoteListWidget extends NoteContextAwareWidget {
}
}
triggerCommand<K extends CommandNames>(name: K, data?: CommandMappings[K]): Promise<unknown> | undefined | null {
// Pass the commands to the view mode, which is not actually attached to the hierarchy.
if (this.viewMode?.triggerCommand(name, data)) {
return;
}
return super.triggerCommand(name, data);
}
}