@necrolab/dashboard 0.5.29 → 0.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/views/Accounts.vue +1 -1
- package/src/views/Profiles.vue +1 -1
- package/src/views/Tasks.vue +29 -1
package/package.json
CHANGED
package/src/views/Accounts.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="page-header-card">
|
|
5
5
|
<MailIcon />
|
|
6
6
|
<h4>Accounts</h4>
|
|
7
|
-
<span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.accounts.length }}</span>
|
|
7
|
+
<span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.search.accounts.results.length }}</span>
|
|
8
8
|
</div>
|
|
9
9
|
<ul class="mobile-icons">
|
|
10
10
|
<li>
|
package/src/views/Profiles.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="page-header-card">
|
|
5
5
|
<GroupIcon />
|
|
6
6
|
<h4>Profiles</h4>
|
|
7
|
-
<span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.profiles.length }}</span>
|
|
7
|
+
<span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.search.profiles.results.length }}</span>
|
|
8
8
|
</div>
|
|
9
9
|
<ul class="mobile-icons">
|
|
10
10
|
<li>
|
package/src/views/Tasks.vue
CHANGED
|
@@ -243,7 +243,35 @@ const QuickSettings = defineAsyncComponent(() => import("@/components/Tasks/Quic
|
|
|
243
243
|
|
|
244
244
|
const ui = useUIStore();
|
|
245
245
|
const activeModal = computed(() => ui.activeModal);
|
|
246
|
-
|
|
246
|
+
|
|
247
|
+
// Count of visible tasks after filters (country, event, All/Checkout) - synced with table
|
|
248
|
+
const taskCount = computed(() => {
|
|
249
|
+
const siteIdEdgeCases = {
|
|
250
|
+
LN_US: ["TM_US"],
|
|
251
|
+
TM_CA: ["TM_US"],
|
|
252
|
+
TM_IE: ["TM_UK"],
|
|
253
|
+
TM_NZ: ["TM_AU"]
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
let count = 0;
|
|
257
|
+
for (const id of ui.taskIdOrder) {
|
|
258
|
+
const task = ui.tasks[id];
|
|
259
|
+
if (!task || task.hidden) continue;
|
|
260
|
+
|
|
261
|
+
// Filter by country
|
|
262
|
+
if (task.siteId !== ui.currentCountry.siteId && !siteIdEdgeCases[task.siteId]?.includes(ui.currentCountry.siteId)) continue;
|
|
263
|
+
|
|
264
|
+
// Filter by event
|
|
265
|
+
if (ui.currentEvent && task.eventId !== ui.currentEvent) continue;
|
|
266
|
+
|
|
267
|
+
// Filter by All/Checkout
|
|
268
|
+
if (ui.taskFilter === "Checkout" && !task.checkoutUrl) continue;
|
|
269
|
+
|
|
270
|
+
count++;
|
|
271
|
+
}
|
|
272
|
+
return count;
|
|
273
|
+
});
|
|
274
|
+
|
|
247
275
|
ui.refreshQueueStats();
|
|
248
276
|
|
|
249
277
|
const taskSearchQuery = ref("");
|