settings: Refactor class names for folder rows.

This commit removes unused classes in folder row elements
and updated used class names to use "-" instead of "_"
following the convention we follow usually.
This commit is contained in:
Sahil Batra
2025-08-07 18:17:05 +05:30
committed by Tim Abbott
parent 21be0e58aa
commit 52b21127e2
2 changed files with 6 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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">