mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
streams-ui: Add UI to update and archive channel folders.
This commit adds edit and delete buttons in the dropdown list for folder. Fixes #35498.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<p>{{t "Channels in this folder will become uncategorized."}}</p>
|
||||
<p>{{t "This action cannot be undone."}}</p>
|
||||
@@ -42,6 +42,12 @@
|
||||
{{else}}
|
||||
{{name}}
|
||||
{{/if}}
|
||||
{{#if has_edit_icon}}
|
||||
{{> components/icon_button custom_classes="dropdown-list-edit dropdown-list-control-button" intent="neutral" icon="edit" aria-label=(t "Edit folder") }}
|
||||
{{/if}}
|
||||
{{#if has_delete_icon}}
|
||||
{{> components/icon_button custom_classes="dropdown-list-delete dropdown-list-control-button" intent="danger" icon="trash" aria-label=(t "Delete folder") }}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</a>
|
||||
{{/if}}
|
||||
|
||||
12
web/templates/stream_settings/edit_channel_folder_modal.hbs
Normal file
12
web/templates/stream_settings/edit_channel_folder_modal.hbs
Normal file
@@ -0,0 +1,12 @@
|
||||
<div>
|
||||
<label for="edit_channel_folder_name" class="modal-field-label">
|
||||
{{t 'Channel folder name' }}
|
||||
</label>
|
||||
<input type="text" id="edit_channel_folder_name" class="modal_text_input" name="channel_folder_name" maxlength="{{ max_channel_folder_name_length }}" value="{{name}}" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="edit_channel_folder_description" class="modal-field-label">
|
||||
{{t 'Description' }}
|
||||
</label>
|
||||
<textarea id="edit_channel_folder_description" class="settings_textarea" name="channel_folder_description" maxlength="{{ max_channel_folder_description_length }}">{{~description~}}</textarea>
|
||||
</div>
|
||||
Reference in New Issue
Block a user