Wybór posterunku

This commit is contained in:
2022-11-16 12:26:31 +01:00
parent 6240297e84
commit dc2062d906
3 changed files with 90 additions and 24 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { defineStore } from 'pinia';
import { IOrderN, IOrderO, IOrderS, TOrder } from '../types/orderTypes';
import { currentFormattedDate } from '../utils/dateUtils';
import { currentFormattedDate, currentFormattedHours, currentFormattedMinutes } from '../utils/dateUtils';
export const useStore = defineStore('store', {
state: () => {
@@ -15,8 +15,8 @@ export const useStore = defineStore('store', {
orderFooter: {
stationName: '',
checkpointName: '',
hour: new Date().toLocaleTimeString('pl-PL', { hour: '2-digit' }),
minutes: new Date().toLocaleTimeString('pl-PL', { minute: '2-digit' }),
hour: currentFormattedHours(),
minutes: currentFormattedMinutes(),
dispatcherName: '',
secondaryDispatcherName: '',
},