Add consolidate badge

This commit is contained in:
Tiberiu Ichim 2026-02-15 08:35:42 +02:00
parent 5f599a9980
commit b3cdd880e1
5 changed files with 72 additions and 9 deletions

View file

@ -115,6 +115,13 @@
<div cy-id="numEpisodesIncomplete" v-else-if="numEpisodesIncomplete && !isHovering && !isSelectionMode" class="absolute rounded-full bg-yellow-400 text-black font-semibold box-shadow-md z-10 flex items-center justify-center" :style="{ top: 0.375 + 'em', right: 0.375 + 'em', width: 1.25 + 'em', height: 1.25 + 'em' }">
<p :style="{ fontSize: 0.8 + 'em' }">{{ numEpisodesIncomplete }}</p>
</div>
<!-- Not Consolidated Badge -->
<ui-tooltip v-if="isNotConsolidated && !isSelectionMode && !isHovering" text="Not Consolidated" direction="top" class="absolute left-0 z-10" :style="{ padding: 0.375 + 'em', bottom: 0.375 + 'em' }">
<div class="rounded-full bg-warning flex items-center justify-center border border-black/20 shadow-sm" :style="{ width: 1.25 + 'em', height: 1.25 + 'em' }">
<span class="material-symbols text-black" :style="{ fontSize: 0.9 + 'em' }">folder_open</span>
</div>
</ui-tooltip>
</div>
</div>
@ -447,6 +454,9 @@ export default {
isInvalid() {
return this._libraryItem.isInvalid
},
isNotConsolidated() {
return !!this._libraryItem.isNotConsolidated
},
errorText() {
if (this.isMissing) return 'Item directory is missing!'
else if (this.isInvalid) {