Fix behind-the-scenes tag class name and tagType consistency

This commit is contained in:
Jarian Cottingham 2026-02-25 09:13:19 -06:00
parent 31c9eff781
commit cc30396b5c
2 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,7 @@ class FileListManager {
<div class="file-fps">${fps}</div>
<div class="file-tags">
<span class="tag-icon extra-tag" data-file-path="${file.path}" title="Mark as Extra">🏷</span>
<span class="tag-icon behind-the-scenes-tag" data-file-path="${file.path}" title="Add Behind the Scenes">🎥</span>
<span class="tag-icon behindTheScenes-tag" data-file-path="${file.path}" title="Add Behind the Scenes">🎥</span>
<span class="tag-icon delete-tag" data-file-path="${file.path}" title="Mark for Deletion">🗑</span>
<span class="video-preview-btn" data-file-path="${file.path}" title="Preview Video">🎬</span>
<button class="play-button" style="opacity: 0.3; cursor: default; flex-shrink: 0;" data-file-path="${file.path}" disabled></button>

View File

@ -7,7 +7,7 @@ class TagManager {
constructor() {
this.tagColors = {
extra: '#28a745', // Green
behindTheScenes: '#17a2b8', // Teal
'behind-the-scenes': '#17a2b8', // Teal
delete: '#dc3545' // Red
};
}
@ -15,7 +15,7 @@ class TagManager {
/**
* Tag a file with a specific tag type
* @param {string} filePath - File path
* @param {string} tagType - Tag type (extra, behindTheScenes, delete)
* @param {string} tagType - Tag type (extra, behind-the-scenes, delete)
* @param {Function} callback - Callback function
*/
tagFile(filePath, tagType, callback) {
@ -190,7 +190,7 @@ class TagManager {
if (item.hasAttribute('data-tagged-extra')) {
tagType = 'extra';
} else if (item.hasAttribute('data-tagged-behind-the-scenes')) {
tagType = 'behindTheScenes';
tagType = 'behind-the-scenes';
} else if (item.hasAttribute('data-tagged-delete')) {
tagType = 'delete';
}
@ -242,7 +242,7 @@ class TagManager {
if (item.hasAttribute('data-tagged-extra')) {
tagType = 'extra';
} else if (item.hasAttribute('data-tagged-behind-the-scenes')) {
tagType = 'behindTheScenes';
tagType = 'behind-the-scenes';
} else if (item.hasAttribute('data-tagged-delete')) {
tagType = 'delete';
}