Skip to content

Commit e405577

Browse files
committed
update: trigger > update.
1 parent 0bc1b8c commit e405577

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib/stores/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function createSubNavigationTrigger() {
5959
subscribers.delete(callback);
6060
};
6161
},
62-
trigger: () => {
62+
update: () => {
6363
subscribers.forEach((callback) => callback());
6464
}
6565
};

src/routes/(console)/project-[region]-[project]/databases/database-[database]/createTable.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
});
3737
3838
showCreate = false;
39-
subNavigation.trigger();
39+
subNavigation.update();
4040
4141
dispatch('created', table);
4242
addNotification({

src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/settings/deleteTable.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
});
2828
2929
showDelete = false;
30-
subNavigation.trigger();
30+
subNavigation.update();
3131
3232
addNotification({
3333
type: 'success',

src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/settings/updateName.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
enabled: $table.enabled
3131
});
3232
33-
subNavigation.trigger();
33+
subNavigation.update();
3434
3535
await invalidate(Dependencies.TABLE);
3636
addNotification({

0 commit comments

Comments
 (0)