Skip to content

Commit

Permalink
Merge pull request #5985 from Countly/ar2rsawseen/master
Browse files Browse the repository at this point in the history
Clean up UI for minimal user
  • Loading branch information
ar2rsawseen authored Feb 12, 2025
2 parents 626008a + 2c57272 commit e1625a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions frontend/express/public/core/date-presets/javascripts/countly.views.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*global Vue app, countlyVue, CV, countlyGlobal, groupsModel, _, CountlyHelpers, countlyPresets*/
/*global Vue app, countlyVue, CV, countlyGlobal, groupsModel, _, CountlyHelpers, countlyPresets, countlyAuth*/

(function() {

Expand Down Expand Up @@ -459,11 +459,13 @@
});
};

app.route("/manage/date-presets", "date-presets", function() {
const PresetManagementView = getManagementView();
this.renderWhenReady(PresetManagementView);
});
if (countlyAuth.validateCreate('core')) {
app.route("/manage/date-presets", "date-presets", function() {
const PresetManagementView = getManagementView();
this.renderWhenReady(PresetManagementView);
});

app.addMenu("management", {code: "presets", permission: "core", url: "#/manage/date-presets", text: "sidebar.management.presets", priority: 30});
app.addMenu("management", {code: "presets", permission: "core", url: "#/manage/date-presets", text: "sidebar.management.presets", priority: 30});
}

})();
2 changes: 1 addition & 1 deletion frontend/express/public/javascripts/countly/countly.template.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ var AppRouter = Backbone.Router.extend({
}
});

if (countlyAuth.validateRead('core')) {
if (countlyAuth.validateCreate('core')) {
self.addSubMenu("management", {code: "longtasks", permission: "core", url: "#/manage/tasks", text: "sidebar.management.longtasks", priority: 10});
}

Expand Down

0 comments on commit e1625a0

Please sign in to comment.