Commit 1006ca1 1 parent 00e07a7 commit 1006ca1 Copy full SHA for 1006ca1
File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ export const useSaveAccount = (): SaveAccountFn => {
66
66
await window . api . saveAccount ( { accountName, accountPassword } ) ;
67
67
publish ( 'account:saved' , { accountName } ) ;
68
68
publish ( 'accounts:reload' ) ;
69
+ publish ( 'toast:add' , {
70
+ title : 'Account Saved' ,
71
+ type : 'success' ,
72
+ text : accountName ,
73
+ } ) ;
69
74
} ,
70
75
[ publish ]
71
76
) ;
@@ -88,6 +93,11 @@ export const useRemoveAccount = (): RemoveAccountFn => {
88
93
await window . api . removeAccount ( { accountName } ) ;
89
94
publish ( 'account:removed' , { accountName } ) ;
90
95
publish ( 'accounts:reload' ) ;
96
+ publish ( 'toast:add' , {
97
+ title : 'Account Removed' ,
98
+ type : 'success' ,
99
+ text : accountName ,
100
+ } ) ;
91
101
} ,
92
102
[ publish ]
93
103
) ;
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ export const useSaveCharacter = (): SaveCharacterFn => {
57
57
await window . api . saveCharacter ( character ) ;
58
58
publish ( 'character:saved' , character ) ;
59
59
publish ( 'characters:reload' ) ;
60
+ publish ( 'toast:add' , {
61
+ title : 'Character Saved' ,
62
+ type : 'success' ,
63
+ text : character . characterName ,
64
+ } ) ;
60
65
} ,
61
66
[ publish ]
62
67
) ;
@@ -85,6 +90,11 @@ export const useRemoveCharacter = (): RemoveCharacterFn => {
85
90
await window . api . removeCharacter ( character ) ;
86
91
publish ( 'character:removed' , character ) ;
87
92
publish ( 'characters:reload' ) ;
93
+ publish ( 'toast:add' , {
94
+ title : 'Character Removed' ,
95
+ type : 'success' ,
96
+ text : character . characterName ,
97
+ } ) ;
88
98
} ,
89
99
[ playingCharacter , quitCharacter , publish ]
90
100
) ;
You can’t perform that action at this time.
0 commit comments