File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
samples/sample-action-button-dropdown-plugin/src/components/sample-action-button-dropdown-plugin-item
src/ui-commands/notification Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ function SampleActionButtonDropdownPlugin(
149
149
tooltip : 'this is a button injected by plugin' ,
150
150
allowed : true ,
151
151
onClick : ( ) => {
152
- pluginApi . uiCommands . notification . setDisplayNotifications ( false ) ;
152
+ pluginApi . uiCommands . notification . setEnabledDisplayNotifications ( false ) ;
153
153
} ,
154
154
} ) ,
155
155
new ActionButtonDropdownOption ( {
Original file line number Diff line number Diff line change 1
1
import { NotificationEnum } from './enums' ;
2
- import { SendNotificationCommandArguments , SetDisplayNotificationsArguments } from './types' ;
2
+ import { SendNotificationCommandArguments , SetEnableDisplayNotificationsArguments } from './types' ;
3
3
4
4
export const notification = {
5
5
/**
@@ -17,12 +17,12 @@ export const notification = {
17
17
/**
18
18
* Decides if notifications stop being displayed.
19
19
*/
20
- setDisplayNotifications : ( isNotificationDisplaying : boolean ) => {
20
+ setEnabledDisplayNotifications : ( isNotificationDisplayEnabled : boolean ) => {
21
21
window . dispatchEvent (
22
22
new CustomEvent <
23
- SetDisplayNotificationsArguments
24
- > ( NotificationEnum . SET_DISPLAY , {
25
- detail : { isNotificationDisplaying } ,
23
+ SetEnableDisplayNotificationsArguments
24
+ > ( NotificationEnum . SET_ENABLED_DISPLAY , {
25
+ detail : { isNotificationDisplayEnabled } ,
26
26
} ) ,
27
27
) ;
28
28
} ,
Original file line number Diff line number Diff line change 1
1
export enum NotificationEnum {
2
- SEND = 'SEND_NOTIFICATION ' ,
3
- SET_DISPLAY = 'SET_DISPLAY '
2
+ SEND = 'SEND_NOTIFICATION_COMMAND ' ,
3
+ SET_ENABLED_DISPLAY = 'SET_ENABLED_DISPLAY_COMMAND '
4
4
}
5
5
6
6
export enum NotificationTypeUiCommand {
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ export interface SendNotificationCommandArguments {
15
15
small ?: boolean ;
16
16
}
17
17
18
- export interface SetDisplayNotificationsArguments {
19
- isNotificationDisplaying : boolean ;
18
+ export interface SetEnableDisplayNotificationsArguments {
19
+ isNotificationDisplayEnabled : boolean ;
20
20
}
21
21
22
22
export interface UiCommandsNotificationObject {
23
23
send : ( information : SendNotificationCommandArguments ) => void ;
24
- setDisplayNotifications : ( isNotificationDisplaying : boolean ) => void ;
24
+ setEnabledDisplayNotifications : ( isNotificationDisplayEnabled : boolean ) => void ;
25
25
}
You can’t perform that action at this time.
0 commit comments