Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Refactor class names for folder rows.

Sahil Batra52b21127e294
diff --git a/web/src/settings_folders.ts b/web/src/settings_folders.ts
index 0f5918feed9..f19e3200a02 100644
--- a/web/src/settings_folders.ts
+++ b/web/src/settings_folders.ts
@@ -114,11 +114,11 @@ export function update_folder_row(event: ChannelFolderUpdateEvent): void {
const $folder_row = get_channel_folder_row(folder_id);
if (event.data.name !== undefined) {
- $folder_row.find(".channel_folder_name").text(event.data.name);
+ $folder_row.find(".channel-folder-name").text(event.data.name);
}
if (event.data.description !== undefined) {
- $folder_row.find(".channel_folder_description").text(event.data.description);
+ $folder_row.find(".channel-folder-description").text(event.data.description);
}
if (event.data.is_archived) {
diff --git a/web/templates/settings/admin_channel_folder_list_item.hbs b/web/templates/settings/admin_channel_folder_list_item.hbs
index 4c02bd76701..e0f70acff87 100644
--- a/web/templates/settings/admin_channel_folder_list_item.hbs
+++ b/web/templates/settings/admin_channel_folder_list_item.hbs
@@ -1,15 +1,15 @@
<tr class="channel-folder-row movable-row" data-channel-folder-id="{{id}}">
- <td class="channel_folder_name_container">
+ <td>
{{#if is_admin}}
<span class="move-handle">
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
</span>
{{/if}}
- <span class="channel_folder_name">{{folder_name}}</span>
+ <span class="channel-folder-name">{{folder_name}}</span>
</td>
- <td class="channel_folder_description_container">
- <span class="channel_folder_description">{{folder_description}}</span>
+ <td>
+ <span class="channel-folder-description">{{folder_description}}</span>
</td>
{{#if is_admin}}
<td class="actions">