|
1197 | 1197 | })
|
1198 | 1198 | });
|
1199 | 1199 |
|
1200 |
| - jQuery(document).ready(function() { |
1201 |
| - app.addMenu("improve", {code: "crashes", text: "crashes.title", icon: '<div class="logo ion-alert-circled"></div>', priority: 10}); |
1202 |
| - app.addSubMenu("crashes", {code: "crash", permission: FEATURE_NAME, url: "#/crashes", text: "sidebar.dashboard", priority: 10}); |
1203 |
| - |
1204 |
| - if (app.configurationsView) { |
1205 |
| - app.configurationsView.registerInput("crashes.grouping_strategy", { |
1206 |
| - input: "el-select", |
1207 |
| - attrs: {}, |
1208 |
| - list: [ |
1209 |
| - {value: 'error_and_file', label: CV.i18n("crashes.grouping_strategy.error_and_file")}, |
1210 |
| - {value: 'stacktrace', label: CV.i18n("crashes.grouping_strategy.stacktrace")} |
1211 |
| - ] |
1212 |
| - }); |
1213 |
| - } |
1214 |
| - |
1215 |
| - app.route("/crashes", "crashes", function() { |
1216 |
| - this.renderWhenReady(getOverviewView()); |
| 1200 | + app.addMenu("improve", {code: "crashes", text: "crashes.title", icon: '<div class="logo ion-alert-circled"></div>', priority: 10}); |
| 1201 | + app.addSubMenu("crashes", {code: "crash", permission: FEATURE_NAME, url: "#/crashes", text: "sidebar.dashboard", priority: 10}); |
| 1202 | + |
| 1203 | + if (app.configurationsView) { |
| 1204 | + app.configurationsView.registerInput("crashes.grouping_strategy", { |
| 1205 | + input: "el-select", |
| 1206 | + attrs: {}, |
| 1207 | + list: [ |
| 1208 | + {value: 'error_and_file', label: CV.i18n("crashes.grouping_strategy.error_and_file")}, |
| 1209 | + {value: 'stacktrace', label: CV.i18n("crashes.grouping_strategy.stacktrace")} |
| 1210 | + ] |
1217 | 1211 | });
|
| 1212 | + } |
1218 | 1213 |
|
1219 |
| - app.route("/crashes/:group", "crashgroup", function(group) { |
1220 |
| - groupId = group; |
1221 |
| - this.renderWhenReady(getCrashgroupView()); |
1222 |
| - }); |
| 1214 | + app.route("/crashes", "crashes", function() { |
| 1215 | + this.renderWhenReady(getOverviewView()); |
| 1216 | + }); |
1223 | 1217 |
|
1224 |
| - app.route("/crashes/:group/binary-images/:crash", "crashgroup", function(group, crash) { |
1225 |
| - groupId = group; |
1226 |
| - crashId = crash; |
1227 |
| - this.renderWhenReady(getBinaryImagesView()); |
1228 |
| - }); |
| 1218 | + app.route("/crashes/:group", "crashgroup", function(group) { |
| 1219 | + groupId = group; |
| 1220 | + this.renderWhenReady(getCrashgroupView()); |
| 1221 | + }); |
| 1222 | + |
| 1223 | + app.route("/crashes/:group/binary-images/:crash", "crashgroup", function(group, crash) { |
| 1224 | + groupId = group; |
| 1225 | + crashId = crash; |
| 1226 | + this.renderWhenReady(getBinaryImagesView()); |
1229 | 1227 | });
|
1230 | 1228 | })();
|
0 commit comments