Skip to content

Commit b965871

Browse files
committed
feat: hide new elements pointed out by #21
1 parent af37b51 commit b965871

File tree

4 files changed

+29
-19
lines changed

4 files changed

+29
-19
lines changed

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: mattermost
22

33
services:
44
mattermost:
5-
image: mattermost/mattermost-team-edition:10.11.2
5+
image: mattermost/mattermost-enterprise-edition:10.11.2
66
restart: unless-stopped
77
# has built in healthcheck so no need to specify one
88
depends_on:

plugin.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "Freemium",
3-
"id": "freemium",
4-
"description": "Injects custom styling on the web UI to remove native enterprise branding and add other QOL improvements.",
5-
"homepage_url": "https://github.com/dy0gu/mattermost-plugin-freemium",
6-
"support_url": "https://github.com/dy0gu/mattermost-plugin-freemium/issues",
7-
"icon_path": "resources/icon.svg",
8-
"min_server_version": "9.11.0",
9-
"webapp": {
10-
"bundle_path": "web/plugin-umd.js"
11-
},
12-
"settings_schema": {
13-
"header": "",
14-
"footer": "",
15-
"settings": []
16-
}
2+
"name": "Freemium",
3+
"id": "freemium",
4+
"description": "Injects custom styling on the web UI to remove native enterprise branding and add other QOL improvements.",
5+
"homepage_url": "https://github.com/dy0gu/mattermost-plugin-freemium",
6+
"support_url": "https://github.com/dy0gu/mattermost-plugin-freemium/issues",
7+
"icon_path": "resources/icon.svg",
8+
"min_server_version": "9.11.0",
9+
"webapp": {
10+
"bundle_path": "web/plugin-umd.js"
11+
},
12+
"settings_schema": {
13+
"header": "",
14+
"footer": "",
15+
"settings": []
16+
}
1717
}

web/src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { GlobalState } from "@mattermost/types/store";
2-
import type { PluginRegistry } from "~/types/mattermost";
32
import type { Action, Store } from "redux";
43
import manifest from "~/../../plugin.json";
54
import boardsTS from "~/scripts/boards";
6-
import premiumCSS from "~/styles/premium.css?raw";
75
import boardsCSS from "~/styles/boards.css?raw";
6+
import premiumCSS from "~/styles/premium.css?raw";
7+
import type { PluginRegistry } from "~/types/mattermost";
88

99
// https://developers.mattermost.com/integrate/plugins/components/webapp
1010
declare global {

web/src/styles/premium.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,15 @@ div[role="dialog"]:has(> #StartTrialFormModal) {
4040

4141
/* Hide the view plans button in the top right corner of the dashboard */
4242
#RightControlsContainer #UpgradeButton {
43-
display: none;
43+
display: none !important;
44+
}
45+
46+
/* Hide the paid "User Groups" menu item in product switcher */
47+
#product-switcher-menu-dropdown #userGroups {
48+
display: none !important;
49+
}
50+
51+
/* Hide the premium setting to highlight keywords */
52+
#accountSettingsModal .section-min.isDisabled {
53+
display: none !important;
4454
}

0 commit comments

Comments
 (0)