diff options
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r-- | src/lib/Menu.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 303845e55..6167f1c59 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -154,6 +154,10 @@ const menuItems = defineMessages({ | |||
154 | id: 'menu.help.debugInfo', | 154 | id: 'menu.help.debugInfo', |
155 | defaultMessage: '!!!Copy Debug Information', | 155 | defaultMessage: '!!!Copy Debug Information', |
156 | }, | 156 | }, |
157 | publishDebugInfo: { | ||
158 | id: 'menu.help.publishDebugInfo', | ||
159 | defaultMessage: '!!!Publish Debug Information', | ||
160 | }, | ||
157 | debugInfoCopiedHeadline: { | 161 | debugInfoCopiedHeadline: { |
158 | id: 'menu.help.debugInfoCopiedHeadline', | 162 | id: 'menu.help.debugInfoCopiedHeadline', |
159 | defaultMessage: '!!!Ferdi Debug Information', | 163 | defaultMessage: '!!!Ferdi Debug Information', |
@@ -959,7 +963,7 @@ export default class FranzMenu { | |||
959 | 963 | ||
960 | tpl[tpl.length - 1].submenu.push({ | 964 | tpl[tpl.length - 1].submenu.push({ |
961 | type: 'separator', | 965 | type: 'separator', |
962 | }, this.debugMenu()); | 966 | }, ...this.debugMenu()); |
963 | 967 | ||
964 | this.currentTemplate = tpl; | 968 | this.currentTemplate = tpl; |
965 | const menu = Menu.buildFromTemplate(tpl); | 969 | const menu = Menu.buildFromTemplate(tpl); |
@@ -1117,7 +1121,7 @@ export default class FranzMenu { | |||
1117 | debugMenu() { | 1121 | debugMenu() { |
1118 | const { intl } = window.ferdi; | 1122 | const { intl } = window.ferdi; |
1119 | 1123 | ||
1120 | return { | 1124 | return [{ |
1121 | label: intl.formatMessage(menuItems.debugInfo), | 1125 | label: intl.formatMessage(menuItems.debugInfo), |
1122 | click: () => { | 1126 | click: () => { |
1123 | const { debugInfo } = this.stores.app; | 1127 | const { debugInfo } = this.stores.app; |
@@ -1133,7 +1137,12 @@ export default class FranzMenu { | |||
1133 | }, | 1137 | }, |
1134 | }); | 1138 | }); |
1135 | }, | 1139 | }, |
1136 | }; | 1140 | }, { |
1141 | label: intl.formatMessage(menuItems.publishDebugInfo), | ||
1142 | click: () => { | ||
1143 | window.ferdi.features.publishDebugInfo.state.isModalVisible = true; | ||
1144 | }, | ||
1145 | }]; | ||
1137 | } | 1146 | } |
1138 | 1147 | ||
1139 | _getServiceName(service) { | 1148 | _getServiceName(service) { |