diff options
author | 2019-10-29 21:18:14 +0100 | |
---|---|---|
committer | 2019-10-29 21:18:14 +0100 | |
commit | cddfc5027b84d8b201714f4198d4314b02c3c4c7 (patch) | |
tree | 348146bdf96f11c70ddefbaac420df6e370d70c7 /src/lib | |
parent | Add @ammarmalhas as a contributor (diff) | |
download | ferdium-app-cddfc5027b84d8b201714f4198d4314b02c3c4c7.tar.gz ferdium-app-cddfc5027b84d8b201714f4198d4314b02c3c4c7.tar.zst ferdium-app-cddfc5027b84d8b201714f4198d4314b02c3c4c7.zip |
Add publish debug log option
Diffstat (limited to 'src/lib')
-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 826fe843f..a858ec993 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); |
@@ -1116,7 +1120,7 @@ export default class FranzMenu { | |||
1116 | debugMenu() { | 1120 | debugMenu() { |
1117 | const { intl } = window.ferdi; | 1121 | const { intl } = window.ferdi; |
1118 | 1122 | ||
1119 | return { | 1123 | return [{ |
1120 | label: intl.formatMessage(menuItems.debugInfo), | 1124 | label: intl.formatMessage(menuItems.debugInfo), |
1121 | click: () => { | 1125 | click: () => { |
1122 | const { debugInfo } = this.stores.app; | 1126 | const { debugInfo } = this.stores.app; |
@@ -1132,7 +1136,12 @@ export default class FranzMenu { | |||
1132 | }, | 1136 | }, |
1133 | }); | 1137 | }); |
1134 | }, | 1138 | }, |
1135 | }; | 1139 | }, { |
1140 | label: intl.formatMessage(menuItems.publishDebugInfo), | ||
1141 | click: () => { | ||
1142 | window.ferdi.features.publishDebugInfo.state.isModalVisible = true; | ||
1143 | }, | ||
1144 | }]; | ||
1136 | } | 1145 | } |
1137 | 1146 | ||
1138 | _getServiceName(service) { | 1147 | _getServiceName(service) { |