mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: add notification on session delete
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
try {
|
||||
await sdkForProject.users.deleteSessions($page.params.user);
|
||||
showDeleteAll = false;
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: 'All sessions have been deleted'
|
||||
});
|
||||
} catch (error) {
|
||||
addNotification({
|
||||
type: 'error',
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
try {
|
||||
await sdkForProject.users.deleteSession($page.params.user, selectedSessionId);
|
||||
showDelete = false;
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: 'Session has been deleted'
|
||||
});
|
||||
} catch (error) {
|
||||
addNotification({
|
||||
type: 'error',
|
||||
|
||||
Reference in New Issue
Block a user