File tree Expand file tree Collapse file tree 3 files changed +1
-241
lines changed Expand file tree Collapse file tree 3 files changed +1
-241
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ export class NotificationsController {
107107 this . state . newlyReceived = this . state . newlyReceived . filter (
108108 ( id ) => ! newlyReceivedToDisplay . some ( ( n ) => n . id === id )
109109 )
110+ await this . writeState ( )
110111 }
111112 }
112113
Original file line number Diff line number Diff line change @@ -196,10 +196,6 @@ export class NotificationsNode implements TreeNode {
196196 const isModal = type === 'modal'
197197
198198 // modal has to have defined actions(buttons)
199- if ( ! notification . uiRenderInstructions . actions && isModal ) {
200- throw new ToolkitError ( 'no button defined for modal' )
201- return
202- }
203199 const buttons = notification . uiRenderInstructions . actions ?? [ ]
204200 const buttonLabels = buttons . map ( ( actions ) => actions . displayText [ 'en-US' ] )
205201 const detail = notification . uiRenderInstructions . content [ 'en-US' ] . description
@@ -279,5 +275,3 @@ export class NotificationsNode implements TreeNode {
279275export function registerProvider ( provider : ResourceTreeDataProvider ) {
280276 NotificationsNode . instance . provider = provider
281277}
282-
283- //export const testNotificationsNode = new NotificationsNode()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments