From be718ce4e049885d339b66c0e946c3598d6e81be Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 12 Jun 2025 09:09:54 +0300 Subject: [PATCH] refactor(client): remove unnecessary widget --- apps/client/src/widgets/tab_aware_widget.js | 53 --------------------- 1 file changed, 53 deletions(-) delete mode 100644 apps/client/src/widgets/tab_aware_widget.js diff --git a/apps/client/src/widgets/tab_aware_widget.js b/apps/client/src/widgets/tab_aware_widget.js deleted file mode 100644 index c6f8e4450..000000000 --- a/apps/client/src/widgets/tab_aware_widget.js +++ /dev/null @@ -1,53 +0,0 @@ -import BasicWidget from "./basic_widget.js"; - -/** - * Base class for widgets that need to track the active tab/note - */ -export default class TabAwareWidget extends BasicWidget { - constructor() { - super(); - this.noteId = null; - this.noteType = null; - this.notePath = null; - this.isActiveTab = false; - } - - /** - * Called when the active note is switched - * - * @param {string} noteId - * @param {string|null} noteType - * @param {string|null} notePath - */ - async noteSwitched(noteId, noteType, notePath) { - this.noteId = noteId; - this.noteType = noteType; - this.notePath = notePath; - } - - /** - * Called when the widget's tab becomes active or inactive - * - * @param {boolean} active - */ - activeTabChanged(active) { - this.isActiveTab = active; - } - - /** - * Called when entities (notes, attributes, etc.) are reloaded - */ - entitiesReloaded() {} - - /** - * Check if this widget is enabled - */ - isEnabled() { - return true; - } - - /** - * Refresh widget with current data - */ - async refresh() {} -}