Skip to content

Commit

Permalink
Fix room info edit Read Only and Colaborative buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
karlprieb committed Feb 9, 2018
1 parent 805ca3e commit b955a87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@
{{_ "Just_invited_people_can_access_this_channel"}}
</div>
</div>

</div>
</div>
{{/with}}

{{#with settings.ro}}
<div class="rc-user-info__row rc-user-info__row--separator">
<div class="rc-switch-double">
<div class="rc-switch-double__label {{equal true value 'disabled'}}">
{{_ "Read_only"}}{{equal default value '*'}}
<div class="rc-switch-double__label {{equal true value 'disabled'}}">
{{_ "Colaborative"}}{{equal default value '*'}}
<div class="rc-switch-double__description">
{{_ "Only_authorized_users_can_write_new_messages"}}
{{_ "All_users_in_the_channel_can_write_new_messages"}}
</div>
</div>
<div class="rc-switch rc-switch--blue">
Expand All @@ -107,10 +107,10 @@
</span>
</label>
</div>
<div class="rc-switch-double__label {{equal false value 'disabled'}}">
{{_ "Colaborative"}}
<div class="rc-switch-double__label {{equal false value 'disabled'}}">
{{_ "Read_only"}}
<div class="rc-switch-double__description">
{{_ "All_users_in_the_channel_can_write_new_messages"}}
{{_ "Only_authorized_users_can_write_new_messages"}}
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
}
}

& .rc-switch-double__label {
color: #a1a1a1;
}

&--separator {

margin: 14px 0;
Expand Down Expand Up @@ -311,7 +315,7 @@
}

&.disabled {
color: #a1a1a1;
color: inherit;
}
}

Expand Down

0 comments on commit b955a87

Please sign in to comment.