mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Statystyki DR (wip)
This commit is contained in:
@@ -52,9 +52,9 @@ import JournalStats from '../components/JournalView/JournalStats.vue';
|
||||
const statsButtons: Journal.StatsButton[] = [
|
||||
{
|
||||
tab: Journal.StatsTab.DISPATCHER_STATS,
|
||||
localeKey: 'journal.dispatcher-stats-title',
|
||||
localeKey: 'journal.dispatcher-stats-button',
|
||||
iconName: 'user',
|
||||
disabled: false
|
||||
disabled: true
|
||||
}
|
||||
];
|
||||
|
||||
@@ -140,9 +140,10 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
'mainStore.dispatcherStatsData'(stats) {
|
||||
// console.log(stats);
|
||||
// this.statsButtons.find((sb) => sb.tab == Journal.StatsTab.DRIVER_STATS)!.disabled =
|
||||
// driverStats === undefined;
|
||||
console.log('dispatcher stats', stats);
|
||||
|
||||
this.statsButtons.find((sb) => sb.tab == Journal.StatsTab.DISPATCHER_STATS)!.disabled =
|
||||
stats === undefined;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -146,13 +146,13 @@ export default defineComponent({
|
||||
statsButtons: [
|
||||
{
|
||||
tab: Journal.StatsTab.DAILY_STATS,
|
||||
localeKey: 'journal.daily-stats-title',
|
||||
localeKey: 'journal.daily-stats-button',
|
||||
iconName: 'stats',
|
||||
disabled: false
|
||||
},
|
||||
{
|
||||
tab: Journal.StatsTab.DRIVER_STATS,
|
||||
localeKey: 'journal.driver-stats-title',
|
||||
localeKey: 'journal.driver-stats-button',
|
||||
iconName: 'user',
|
||||
disabled: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user