mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 19:49:31 +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`
|
return html`
|
||||||
<div id="user-info" class="whitespace-nowrap">
|
<div id="user-info" class="whitespace-nowrap">
|
||||||
<div
|
<div
|
||||||
|
@ -105,10 +109,7 @@ export default class UsernameForm extends Component {
|
||||||
id="username-display"
|
id="username-display"
|
||||||
class="text-indigo-600 text-xs font-semibold truncate overflow-hidden whitespace-no-wrap ${isModerator &&
|
class="text-indigo-600 text-xs font-semibold truncate overflow-hidden whitespace-no-wrap ${isModerator &&
|
||||||
'moderator-flag'}"
|
'moderator-flag'}"
|
||||||
><img
|
>${isModerator && moderatorFlag}${username}</span
|
||||||
src="/img/moderator.svg"
|
|
||||||
class="moderator-flag rounded-lg"
|
|
||||||
/>${username}</span
|
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue