The initial setup done in fb0d56324f
clashed with other plugins, I found this when trying to do the same
for Gamification. This uses a better routing setup and removes the
need to define the config nav link for Settings -- that is always inserted.
Relies on https://github.com/discourse/discourse/pull/26707
13 lines
252 B
JavaScript
13 lines
252 B
JavaScript
export default {
|
|
resource: "admin.adminPlugins.show",
|
|
|
|
path: "/plugins",
|
|
|
|
map() {
|
|
this.route("discourse-ai-personas", { path: "ai-personas" }, function () {
|
|
this.route("new");
|
|
this.route("show", { path: "/:id" });
|
|
});
|
|
},
|
|
};
|