Commit cda9e1e7 authored by Brian Hatchet's avatar Brian Hatchet :speech_balloon:

Linted

1 merge request!499Feat/closed channels 602
Pipeline #79432854 running with stages
<m-dropdown #channelModeDropdown
class="m-channel-mode-selector--dropdown"
>
<m-dropdown #channelModeDropdown class="m-channel-mode-selector--dropdown">
<label *ngIf="user.mode === channelModes.PUBLIC">
<i class="material-icons m-dropdown--label-icon">public</i>
<span>Public</span>
<i class="material-icons m-dropdown--label-icon" *ngIf="enabled">keyboard_arrow_down</i>
<i class="material-icons m-dropdown--label-icon" *ngIf="enabled"
>keyboard_arrow_down</i
>
</label>
<label *ngIf="user.mode === channelModes.MODERATED">
<i class="material-icons m-dropdown--label-icon">person_add</i>
<span>Moderated</span>
<i class="material-icons m-dropdown--label-icon" *ngIf="enabled">keyboard_arrow_down</i>
<i class="material-icons m-dropdown--label-icon" *ngIf="enabled"
>keyboard_arrow_down</i
>
</label>
<label *ngIf="user.mode === channelModes.CLOSED">
<i class="material-icons m-dropdown--label-icon">lock</i>
<span>Closed</span>
<i class="material-icons m-dropdown--label-icon" *ngIf="enabled">keyboard_arrow_down</i>
<i class="material-icons m-dropdown--label-icon" *ngIf="enabled"
>keyboard_arrow_down</i
>
</label>
<ul class="m-dropdown--list">
<li class="m-dropdown--list--item"
[class.m-dropdown--list--item--selected]="user.mode === channelModes.PUBLIC"
(click)="setChannelMode(channelModes.PUBLIC)">
<li
class="m-dropdown--list--item"
[class.m-dropdown--list--item--selected]="
user.mode === channelModes.PUBLIC
"
(click)="setChannelMode(channelModes.PUBLIC)"
>
<i class="material-icons m-dropdown--label-icon">public</i>
<span>Public</span>
</li>
<li class="m-dropdown--list--item"
[class.m-dropdown--list--item--selected]="user.mode === channelModes.MODERATED"
(click)="setChannelMode(channelModes.MODERATED)">
<li
class="m-dropdown--list--item"
[class.m-dropdown--list--item--selected]="
user.mode === channelModes.MODERATED
"
(click)="setChannelMode(channelModes.MODERATED)"
>
<i class="material-icons m-dropdown--label-icon">person_add</i>
<span>Moderated</span>
</li>
<li class="m-dropdown--list--item"
[class.m-dropdown--list--item--selected]="user.mode === channelModes.CLOSED"
(click)="setChannelMode(channelModes.CLOSED)">
<li
class="m-dropdown--list--item"
[class.m-dropdown--list--item--selected]="
user.mode === channelModes.CLOSED
"
(click)="setChannelMode(channelModes.CLOSED)"
>
<i class="material-icons m-dropdown--label-icon">lock</i>
<span>Closed</span>
</li>
</ul>
</m-dropdown>
</m-dropdown>
......@@ -205,8 +205,14 @@
</div>
</div>
<div class="m-channel__channel-mode-selector" *ngIf="featuresService.has('permissions')">
<m-channel-mode-selector [user]="user" [enabled]="session.isLoggedIn() && session.getLoggedInUser().guid === user.guid"></m-channel-mode-selector>
<div
class="m-channel__channel-mode-selector"
*ngIf="featuresService.has('permissions')"
>
<m-channel-mode-selector
[user]="user"
[enabled]="session.isLoggedIn() && session.getLoggedInUser().guid === user.guid"
></m-channel-mode-selector>
</div>
<div class="m-channel--action-buttons">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment