mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 06:46:01 +03:00
Only show moderator flag if you are a moderator. Fixes #1536
This commit is contained in:
parent
7b1d24873e
commit
d213c4a5b7
1 changed files with 5 additions and 4 deletions
|
@ -92,6 +92,10 @@ export default class UsernameForm extends Component {
|
|||
},
|
||||
};
|
||||
|
||||
const moderatorFlag = html`
|
||||
<img src="/img/moderator.svg" class="moderator-flag rounded-lg" />
|
||||
`;
|
||||
|
||||
return html`
|
||||
<div id="user-info" class="whitespace-nowrap">
|
||||
<div
|
||||
|
@ -105,10 +109,7 @@ export default class UsernameForm extends Component {
|
|||
id="username-display"
|
||||
class="text-indigo-600 text-xs font-semibold truncate overflow-hidden whitespace-no-wrap ${isModerator &&
|
||||
'moderator-flag'}"
|
||||
><img
|
||||
src="/img/moderator.svg"
|
||||
class="moderator-flag rounded-lg"
|
||||
/>${username}</span
|
||||
>${isModerator && moderatorFlag}${username}</span
|
||||
>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue