streams: Add UI to add or remove stream from a folder.

This commit adds UI to add a stream to a folder while
creating them and also for adding/removing an existing
stream from a folder.
This commit is contained in:
Sahil Batra
2025-05-29 12:43:51 +05:30
committed by Tim Abbott
parent 403b73e1a6
commit 7c01e61e5a
16 changed files with 176 additions and 2 deletions

View File

@@ -27,7 +27,8 @@
<div class="stream-types">
{{> stream_types .
is_stream_edit=false
prefix="id_new_" }}
prefix="id_new_"
channel_folder_widget_name="new_channel_folder_id"}}
</div>
</section>
</div>

View File

@@ -87,6 +87,7 @@
is_stream_edit=true
prefix="id_"
group_setting_labels=../group_setting_labels
channel_folder_widget_name="folder_id"
}}
{{/with}}
<div class="stream_details_box">

View File

@@ -43,6 +43,25 @@
</div>
</div>
<div class="channel-folder-subsection {{#if is_stream_edit}}settings-subsection-parent{{/if}}">
<div class="channel-folder-title-container {{#if is_stream_edit}}subsection-header{{/if}}">
<h3 class="stream_setting_subsection_title">{{t "Folders"}}</h3>
{{#if is_stream_edit}}
{{> ../settings/settings_save_discard_widget section_name="stream-permissions" }}
{{/if}}
</div>
<div class="input-group channel-folder-container">
<label class="settings-field-label" for="{{channel_folder_widget_name}}_widget">
{{t "Channel folder"}}
</label>
<span class="prop-element hide" id="id_{{channel_folder_widget_name}}" data-setting-widget-type="dropdown-list-widget" data-setting-value-type="number"></span>
<div class="dropdown_widget_with_label_wrapper channel-folder-widget-container">
{{> ../dropdown_widget widget_name=channel_folder_widget_name}}
</div>
</div>
</div>
<div class="advanced-configurations-container {{#if is_stream_edit}}settings-subsection-parent{{/if}}">
<div class="advance-config-title-container {{#if is_stream_edit}}subsection-header{{/if}}">
<div class="advance-config-toggle-area">