Skip to content

Commit

Permalink
fix(menu): websocket-actions are named correct (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPSchellenberg committed Mar 17, 2021
1 parent f643915 commit c38e4d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion server/src/menu/analyticsMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default (window: electron.BrowserWindow, websocket: SocketIO.Server) => [
{
accelerator: 'CmdOrCtrl+O',
click: () => {
websocket.emit('lumi:action', {
websocket.emit('action', {
payload: {},
type: 'IMPORT_ANALYTICS'
});
Expand Down
10 changes: 5 additions & 5 deletions server/src/menu/h5peditorMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default (window: electron.BrowserWindow, websocket: SocketIO.Server) => [
{
accelerator: 'CmdOrCtrl+N',
click: () => {
websocket.emit('lumi:action', {
websocket.emit('action', {
payload: {
contentId: Math.round(Math.random() * 100000)
},
Expand All @@ -35,7 +35,7 @@ export default (window: electron.BrowserWindow, websocket: SocketIO.Server) => [
properties: ['openFile', 'multiSelections']
})
.then(({ filePaths }) => {
websocket.emit('lumi:action', {
websocket.emit('action', {
payload: {
paths: filePaths
},
Expand All @@ -49,7 +49,7 @@ export default (window: electron.BrowserWindow, websocket: SocketIO.Server) => [
{
accelerator: 'CmdOrCtrl+S',
click: () => {
websocket.emit('lumi:action', {
websocket.emit('action', {
type: 'SAVE'
});
},
Expand All @@ -58,7 +58,7 @@ export default (window: electron.BrowserWindow, websocket: SocketIO.Server) => [
{
accelerator: 'Shift+CmdOrCtrl+S',
click: () => {
websocket.emit('lumi:action', {
websocket.emit('action', {
type: 'SAVE_AS'
});
},
Expand All @@ -67,7 +67,7 @@ export default (window: electron.BrowserWindow, websocket: SocketIO.Server) => [
{ type: 'separator' } as any,
{
click: () => {
websocket.emit('lumi:action', {
websocket.emit('action', {
type: 'EXPORT_AS_HTML'
});
},
Expand Down
2 changes: 1 addition & 1 deletion server/src/menu/helpMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function (
submenu: [
{
click: () => {
websocket.emit('lumi:action', {
websocket.emit('action', {
type: 'REPORT_ISSUE'
});
},
Expand Down

0 comments on commit c38e4d5

Please sign in to comment.