Skip to content

Commit a120c73

Browse files
committedJun 3, 2022
[crashes] fixing adding menu concurrency issue
1 parent f81df63 commit a120c73

File tree

1 file changed

+24
-26
lines changed

1 file changed

+24
-26
lines changed
 

‎plugins/crashes/frontend/public/javascripts/countly.views.js

+24-26
Original file line numberDiff line numberDiff line change
@@ -1197,34 +1197,32 @@
11971197
})
11981198
});
11991199

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+
]
12171211
});
1212+
}
12181213

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+
});
12231217

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());
12291227
});
12301228
})();

0 commit comments

Comments
 (0)
Please sign in to comment.