Skip to content

Commit

Permalink
Remove unnecessary sidebar overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed May 15, 2023
1 parent cac919e commit 1d18ccf
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ import Discourse from "../models/discourse";
import { withPluginApi } from "discourse/lib/plugin-api";
import discourseComputed from "discourse-common/utils/decorators";

import EverythingSectionLink from "discourse/lib/sidebar/common/community-section/everything-section-link";
import AdminSectionLink from "discourse/lib/sidebar/user/community-section/admin-section-link";
import DocumentationSectionLink from "../lib/sidebar/common/community-section/documentation-section-link";
import PluginStatusSectionLink from "../lib/sidebar/common/community-section/plugin-status-section-link";
import SupportSectionLink from "../lib/sidebar/common/community-section/support-section-link";

export default {
name: "plugin-manager",
initialize(container) {
Expand Down Expand Up @@ -68,29 +62,6 @@ export default {
return categories.filter((c) => c.for_plugin);
},
});

api.modifyClass("component:sidebar/user/community-section", {
get defaultMainSectionLinks() {
return [
EverythingSectionLink,
DocumentationSectionLink,
SupportSectionLink,
PluginStatusSectionLink,
AdminSectionLink,
];
},
});

api.modifyClass("component:sidebar/anonymous/community-section", {
get defaultMainSectionLinks() {
return [
EverythingSectionLink,
DocumentationSectionLink,
SupportSectionLink,
PluginStatusSectionLink,
];
},
});
});
},
};

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1d18ccf

Please sign in to comment.