mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00:58 -05:00
chore: hide emoji settings if no perm
This commit is contained in:
parent
030c211230
commit
2214efe1bc
3 changed files with 16 additions and 10 deletions
|
@ -141,7 +141,7 @@
|
||||||
"remark-math": "^5.1.1",
|
"remark-math": "^5.1.1",
|
||||||
"remark-parse": "^10.0.1",
|
"remark-parse": "^10.0.1",
|
||||||
"remark-rehype": "^10.1.0",
|
"remark-rehype": "^10.1.0",
|
||||||
"revolt.js": "6.0.5",
|
"revolt.js": "^6.0.6",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"semver": "^7.3.7",
|
"semver": "^7.3.7",
|
||||||
|
|
|
@ -49,7 +49,9 @@ export const Emojis = observer(({ server }: Props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Column>
|
<Column>
|
||||||
|
{server.havePermission("ManageCustomisation") && (
|
||||||
<EmojiUploader server={server} />
|
<EmojiUploader server={server} />
|
||||||
|
)}
|
||||||
<h3>
|
<h3>
|
||||||
<Text id="app.settings.server_pages.emojis.title" />
|
<Text id="app.settings.server_pages.emojis.title" />
|
||||||
{" – "}
|
{" – "}
|
||||||
|
@ -72,9 +74,13 @@ export const Emojis = observer(({ server }: Props) => {
|
||||||
}>
|
}>
|
||||||
<Text id="app.context_menu.copy_id" />
|
<Text id="app.context_menu.copy_id" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button palette="plain" onClick={() => emoji.delete()}>
|
{server.havePermission("ManageCustomisation") && (
|
||||||
|
<Button
|
||||||
|
palette="plain"
|
||||||
|
onClick={() => emoji.delete()}>
|
||||||
<Text id="app.special.modals.actions.delete" />
|
<Text id="app.special.modals.actions.delete" />
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
</Emoji>
|
</Emoji>
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -3696,7 +3696,7 @@ __metadata:
|
||||||
remark-math: ^5.1.1
|
remark-math: ^5.1.1
|
||||||
remark-parse: ^10.0.1
|
remark-parse: ^10.0.1
|
||||||
remark-rehype: ^10.1.0
|
remark-rehype: ^10.1.0
|
||||||
revolt.js: 6.0.5
|
revolt.js: ^6.0.6
|
||||||
rimraf: ^3.0.2
|
rimraf: ^3.0.2
|
||||||
sass: ^1.35.1
|
sass: ^1.35.1
|
||||||
semver: ^7.3.7
|
semver: ^7.3.7
|
||||||
|
@ -7890,9 +7890,9 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"revolt.js@npm:6.0.5":
|
"revolt.js@npm:^6.0.6":
|
||||||
version: 6.0.5
|
version: 6.0.6
|
||||||
resolution: "revolt.js@npm:6.0.5"
|
resolution: "revolt.js@npm:6.0.6"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@insertish/exponential-backoff": 3.1.0-patch.2
|
"@insertish/exponential-backoff": 3.1.0-patch.2
|
||||||
"@insertish/isomorphic-ws": ^4.0.1
|
"@insertish/isomorphic-ws": ^4.0.1
|
||||||
|
@ -7906,7 +7906,7 @@ __metadata:
|
||||||
revolt-api: 0.5.4
|
revolt-api: 0.5.4
|
||||||
ulid: ^2.3.0
|
ulid: ^2.3.0
|
||||||
ws: ^8.2.2
|
ws: ^8.2.2
|
||||||
checksum: 54d7f3a9eeafc79ae5443e22cacd85acb3359aaacccfbb11e41c8cb4a888188b200224dd3ce78847682aabbd3737d99848f6f1fbf144973cd2928d2316cffd2d
|
checksum: 079bdb983c650233378a617b771d7ff64396ce96fbd822fea20e9897fa14c2e589869e4a66f749dc74ce08218af425f97ab42fcaca7a3ab0f68f38f163484260
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue