Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
d802a5d4
Commit
d802a5d4
authored
9 years ago
by
Matthias Brun
Browse files
Options
Downloads
Patches
Plain Diff
Fix archiving button being shown to users who don't have the permissions
parent
0b9c1247
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/rocketchat-channel-settings/client/views/channelSettings.html
+10
-8
10 additions, 8 deletions
...etchat-channel-settings/client/views/channelSettings.html
with
10 additions
and
8 deletions
packages/rocketchat-channel-settings/client/views/channelSettings.html
+
10
−
8
View file @
d802a5d4
...
...
@@ -44,14 +44,16 @@
</li>
{{/if}}
{{#if notDirect}}
<li>
<label>
{{_ "Archive_Unarchive"}}
</label>
{{#if archived}}
<button
class=
"button unarchive"
><span>
{{_ "Unarchive"}}
</span></button>
{{else}}
<button
class=
"button archive"
><span>
{{_ "Archive"}}
</span></button>
{{/if}}
</li>
{{#if canEdit}}
<li>
<label>
{{_ "Archive_Unarchive"}}
</label>
{{#if archived}}
<button
class=
"button unarchive"
><span>
{{_ "Unarchive"}}
</span></button>
{{else}}
<button
class=
"button archive"
><span>
{{_ "Archive"}}
</span></button>
{{/if}}
</li>
{{/if}}
{{/if}}
{{#each channelSettings}}
{{> Template.dynamic template=template data=data}}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment