@@ -112,6 +112,16 @@ const watchedPercentage = computed(() => {
112
112
return watched .value ? 100 : 0 ;
113
113
});
114
114
115
+ const hadAiredWatched = computed (() => {
116
+ const _progress = watchedProgress ?.value ;
117
+ if (! _progress ) return false ;
118
+ return ' aired' in _progress && _progress .aired > 0 ;
119
+ });
120
+
121
+ const disableWatchedTooltip = computed (() => {
122
+ return ! [' show' , ' season' ].includes (mode .value ) || ! hadAiredWatched .value ;
123
+ });
124
+
115
125
const collected = computed (() => {
116
126
const _progress = collectionProgress ?.value ;
117
127
if (_progress === undefined ) return ;
@@ -125,6 +135,16 @@ const collectionPercentage = computed(() => {
125
135
return collected .value ? 100 : 0 ;
126
136
});
127
137
138
+ const hadAiredCollection = computed (() => {
139
+ const _progress = collectionProgress ?.value ;
140
+ if (! _progress ) return false ;
141
+ return ' aired' in _progress && _progress .aired > 0 ;
142
+ });
143
+
144
+ const disableCollectionTooltip = computed (() => {
145
+ return ! [' show' , ' season' ].includes (mode .value ) || ! hadAiredCollection .value ;
146
+ });
147
+
128
148
const i18n = useI18n (' panel' , ' buttons' );
129
149
130
150
const root = ref <HTMLDivElement >();
@@ -222,7 +242,7 @@ onMounted(() => {
222
242
options: collectionOptions,
223
243
}"
224
244
:tooltip =" {
225
- disabled: !['show', 'season'].includes(mode) ,
245
+ disabled: disableCollectionTooltip ,
226
246
type: 'collection',
227
247
}"
228
248
:icon =" collected ? IconGrid : IconGridEmpty"
@@ -244,7 +264,7 @@ onMounted(() => {
244
264
options: watchedOptions,
245
265
}"
246
266
:tooltip =" {
247
- disabled: !['show', 'season'].includes(mode) ,
267
+ disabled: disableWatchedTooltip ,
248
268
}"
249
269
:icon =" watched ? IconPlayFilled : IconPlay"
250
270
:progress =" watchedProgress"
0 commit comments