diff --git a/src/components/OrderS.vue b/src/components/OrderS.vue index 41cdd73..8f488b9 100644 --- a/src/components/OrderS.vue +++ b/src/components/OrderS.vue @@ -207,9 +207,33 @@ - Inne: -
- + + +
Inne:
+
+ zezwalam na wyjazd poza wskaźnik przetaczania W5 na tor szlakowy nr + , maksymalnie do + km szlaku. Powrót odbędzie się na + + + do godziny . +
+ + @@ -293,6 +317,13 @@ export default defineComponent({ () => { const row = order.rows[3]; + if (row.w5.enabled) + return `Inne: zezwalam na wyjazd poza wskaźnik przetaczania W5 na tor szlakowy nr ${ + row.w5.trackNo || '_' + }, maksymalnie do ${row.w5.maxKm || '_'} km szlaku. Powrót odbędzie się na ${row.w5.returnWay || '_'} ${ + row.w5.returnWay.includes('tarczy') ? row.w5.tmName || '_' : '' + } do godziny ${row.w5.maxHour || '_'}`; + return `Inne: ${row.content}`; }, ]; diff --git a/src/store/store.ts b/src/store/store.ts index 47bc620..2da327a 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -7,7 +7,7 @@ export const useStore = defineStore('store', { return { helperModalOpen: false, - chosenOrderType: 'orderN' as TOrder, + chosenOrderType: 'orderS' as TOrder, chosenLocalOrderId: '', orderMode: 'OrderMessage', @@ -177,6 +177,13 @@ export const useStore = defineStore('store', { { enabled: false, content: '', + w5: { + enabled: false, + maxHour: '', + maxKm: '', + returnWay: 'sygnał ręczny "Do mnie"', + trackNo: '', + }, }, ], } as IOrderS, @@ -184,3 +191,4 @@ export const useStore = defineStore('store', { }, }); + diff --git a/src/styles/global.scss b/src/styles/global.scss index 218ae10..9e146d8 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -56,6 +56,7 @@ button.g-button { &.option { margin: 0 0.25em; + padding: 0.25em; &:focus-visible { outline: 1px solid $accentCol; @@ -65,6 +66,15 @@ button.g-button { color: $accentCol; } } + + &.text { + padding: 0; + color: #000; + + &:focus-visible { + color: $accentCol; + } + } } // Text styles diff --git a/src/types/orderTypes.ts b/src/types/orderTypes.ts index cd4c9aa..a381a50 100644 --- a/src/types/orderTypes.ts +++ b/src/types/orderTypes.ts @@ -107,6 +107,15 @@ export interface IOrderS { { enabled: boolean; content: string; + + w5: { + enabled: boolean; + trackNo: string; + maxKm: string; + returnWay: string; + maxHour: string; + tmName: string; + }; } ]; } @@ -163,3 +172,4 @@ export interface IOrderO { other: string; } +