mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
stream_settings: Show disabled create stream button and text.
Now user who don't have permission can see disabled stream create button with message.
This commit is contained in:
@@ -697,6 +697,11 @@ div.overlay {
|
|||||||
box-shadow: 0 1px 4px 0 hsl(235deg 18% 7%);
|
box-shadow: 0 1px 4px 0 hsl(235deg 18% 7%);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.color_animated_button {
|
.color_animated_button {
|
||||||
|
|||||||
@@ -58,14 +58,18 @@
|
|||||||
<div id="stream_settings_title" class="stream-info-title">{{t 'Channel settings' }}</div>
|
<div id="stream_settings_title" class="stream-info-title">{{t 'Channel settings' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="nothing-selected">
|
<div class="nothing-selected">
|
||||||
|
<button type="button" class="create_stream_button animated-purple-button" {{#unless can_create_streams}}disabled{{/unless}}>{{t 'Create channel' }}</button>
|
||||||
{{#if can_create_streams}}
|
{{#if can_create_streams}}
|
||||||
<button type="button" class="create_stream_button animated-purple-button">{{t 'Create channel' }}</button>
|
|
||||||
<span class="settings-empty-option-text">
|
<span class="settings-empty-option-text">
|
||||||
{{#tr}}
|
{{#tr}}
|
||||||
First time? Read our <z-link>guidelines</z-link> for creating and naming channels.
|
First time? Read our <z-link>guidelines</z-link> for creating and naming channels.
|
||||||
{{#*inline "z-link"}}<a href="/help/getting-your-organization-started-with-zulip#create-channels" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
|
{{#*inline "z-link"}}<a href="/help/getting-your-organization-started-with-zulip#create-channels" target="_blank" rel="noopener noreferrer">{{> @partial-block}}</a>{{/inline}}
|
||||||
{{/tr}}
|
{{/tr}}
|
||||||
</span>
|
</span>
|
||||||
|
{{else}}
|
||||||
|
<span class="settings-empty-option-text">
|
||||||
|
{{t 'You do not have permission to create channels in this organization.' }}
|
||||||
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div id="stream_settings" class="settings" data-simplebar data-simplebar-tab-index="-1" data-simplebar-auto-hide="false">
|
<div id="stream_settings" class="settings" data-simplebar data-simplebar-tab-index="-1" data-simplebar-auto-hide="false">
|
||||||
|
|||||||
Reference in New Issue
Block a user