mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
fix(settings): correct event reason from 'view-deleted' to 'view-updated'
The event triggered after editing a view configuration was incorrectly labeled as 'view-deleted'. This changes it to the correct 'view-updated' reason to properly reflect the action being performed.
This commit is contained in:
parent
e26e6d54c6
commit
9e595e7ae9
1 changed files with 4 additions and 1 deletions
|
|
@ -456,7 +456,10 @@ export function renderViewSettingsTab(
|
|||
renderViewList();
|
||||
(settingTab.app.workspace as any).trigger(
|
||||
"task-genius:view-config-changed",
|
||||
{ reason: "view-deleted", viewId: view.id }
|
||||
{
|
||||
reason: "view-updated",
|
||||
viewId: updatedView.id,
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue