mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-09 08:40:29 +03:00
Add option to view event source (#320)
* Add view source * Add view source cons * Change design * Use PopupWindow instead of Dialog * Undo changes to Dialog.jsx
This commit is contained in:
parent
a8a168b0a7
commit
1d7fbc841e
8 changed files with 119 additions and 2 deletions
|
|
@ -42,6 +42,7 @@ const cons = {
|
|||
OPEN_SETTINGS: 'OPEN_SETTINGS',
|
||||
OPEN_EMOJIBOARD: 'OPEN_EMOJIBOARD',
|
||||
OPEN_READRECEIPTS: 'OPEN_READRECEIPTS',
|
||||
OPEN_VIEWSOURCE: 'OPEN_VIEWSOURCE',
|
||||
CLICK_REPLY_TO: 'CLICK_REPLY_TO',
|
||||
OPEN_SEARCH: 'OPEN_SEARCH',
|
||||
OPEN_REUSABLE_CONTEXT_MENU: 'OPEN_REUSABLE_CONTEXT_MENU',
|
||||
|
|
@ -82,6 +83,7 @@ const cons = {
|
|||
PROFILE_VIEWER_OPENED: 'PROFILE_VIEWER_OPENED',
|
||||
EMOJIBOARD_OPENED: 'EMOJIBOARD_OPENED',
|
||||
READRECEIPTS_OPENED: 'READRECEIPTS_OPENED',
|
||||
VIEWSOURCE_OPENED: 'VIEWSOURCE_OPENED',
|
||||
REPLY_TO_CLICKED: 'REPLY_TO_CLICKED',
|
||||
SEARCH_OPENED: 'SEARCH_OPENED',
|
||||
REUSABLE_CONTEXT_MENU_OPENED: 'REUSABLE_CONTEXT_MENU_OPENED',
|
||||
|
|
|
|||
|
|
@ -137,6 +137,12 @@ class Navigation extends EventEmitter {
|
|||
action.userIds,
|
||||
);
|
||||
},
|
||||
[cons.actions.navigation.OPEN_VIEWSOURCE]: () => {
|
||||
this.emit(
|
||||
cons.events.navigation.VIEWSOURCE_OPENED,
|
||||
action.event,
|
||||
);
|
||||
},
|
||||
[cons.actions.navigation.CLICK_REPLY_TO]: () => {
|
||||
this.emit(
|
||||
cons.events.navigation.REPLY_TO_CLICKED,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue