Skip to content

Commit

Permalink
Simplify Extension Categories (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrneDev committed Mar 1, 2021
1 parent 7fa22a1 commit b7379bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions js/src/admin/AdminApplication.js
Expand Up @@ -10,14 +10,9 @@ export default class AdminApplication extends Application {
extensionData = new ExtensionData();

extensionCategories = {
discussion: 70,
moderation: 60,
feature: 50,
formatting: 40,
theme: 30,
authentication: 20,
feature: 30,
theme: 20,
language: 10,
other: 0,
};

history = {
Expand Down
4 changes: 2 additions & 2 deletions js/src/admin/utils/getCategorizedExtensions.js
Expand Up @@ -15,9 +15,9 @@ export default function getCategorizedExtensions() {

extensions[category].push(extension);
} else {
extensions.other = extensions.other || [];
extensions.feature = extensions.feature || [];

extensions.other.push(extension);
extensions.feature.push(extension);
}
});

Expand Down

0 comments on commit b7379bf

Please sign in to comment.