Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
891
Issues
891
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
cda9e1e7
Commit
cda9e1e7
authored
1 minute ago
by
Brian Hatchet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Linted
parent
034fc934
feat/closed-channels-602
1 merge request
!499
Feat/closed channels 602
Pipeline
#79432854
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
18 deletions
+40
-18
channel-mode-selector.component.html
...hannel-mode-selector/channel-mode-selector.component.html
+32
-16
sidebar.html
src/app/modules/channels/sidebar/sidebar.html
+8
-2
No files found.
src/app/common/components/channel-mode-selector/channel-mode-selector.component.html
View file @
cda9e1e7
<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>
This diff is collapsed.
Click to expand it.
src/app/modules/channels/sidebar/sidebar.html
View file @
cda9e1e7
...
...
@@ -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"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment