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 ccf136fe2b
commit c82c5b9138
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-fps">${fps}</div>
<div class="file-tags"> <div class="file-tags">
<span class="tag-icon extra-tag" data-file-path="${file.path}" title="Mark as Extra">🏷</span> <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="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> <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> <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() { constructor() {
this.tagColors = { this.tagColors = {
extra: '#28a745', // Green extra: '#28a745', // Green
behindTheScenes: '#17a2b8', // Teal 'behind-the-scenes': '#17a2b8', // Teal
delete: '#dc3545' // Red delete: '#dc3545' // Red
}; };
} }
@ -15,7 +15,7 @@ class TagManager {
/** /**
* Tag a file with a specific tag type * Tag a file with a specific tag type
* @param {string} filePath - File path * @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 * @param {Function} callback - Callback function
*/ */
tagFile(filePath, tagType, callback) { tagFile(filePath, tagType, callback) {
@ -190,7 +190,7 @@ class TagManager {
if (item.hasAttribute('data-tagged-extra')) { if (item.hasAttribute('data-tagged-extra')) {
tagType = 'extra'; tagType = 'extra';
} else if (item.hasAttribute('data-tagged-behind-the-scenes')) { } else if (item.hasAttribute('data-tagged-behind-the-scenes')) {
tagType = 'behindTheScenes'; tagType = 'behind-the-scenes';
} else if (item.hasAttribute('data-tagged-delete')) { } else if (item.hasAttribute('data-tagged-delete')) {
tagType = 'delete'; tagType = 'delete';
} }
@ -242,7 +242,7 @@ class TagManager {
if (item.hasAttribute('data-tagged-extra')) { if (item.hasAttribute('data-tagged-extra')) {
tagType = 'extra'; tagType = 'extra';
} else if (item.hasAttribute('data-tagged-behind-the-scenes')) { } else if (item.hasAttribute('data-tagged-behind-the-scenes')) {
tagType = 'behindTheScenes'; tagType = 'behind-the-scenes';
} else if (item.hasAttribute('data-tagged-delete')) { } else if (item.hasAttribute('data-tagged-delete')) {
tagType = 'delete'; tagType = 'delete';
} }