Skip to content

Commit 82bdce5

Browse files
committed
adressed comments
1 parent 7692bf1 commit 82bdce5

File tree

3 files changed

+1
-241
lines changed

3 files changed

+1
-241
lines changed

packages/core/src/notifications/controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

packages/core/src/notifications/panelNode.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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 {
279275
export function registerProvider(provider: ResourceTreeDataProvider) {
280276
NotificationsNode.instance.provider = provider
281277
}
282-
283-
//export const testNotificationsNode = new NotificationsNode()

packages/core/src/test/notifications/rendering.test.ts

Lines changed: 0 additions & 235 deletions
This file was deleted.

0 commit comments

Comments
 (0)