mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Dodano sortowanie pociągów wg. postępu
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<select-box
|
||||
:title="$t('trains.option-distance')"
|
||||
:itemList="translatedSorterOptions"
|
||||
:defaultItemIndex="3"
|
||||
:defaultItemIndex="0"
|
||||
:prefix="$t('trains.sorter-prefix')"
|
||||
@selected="changeSorter"
|
||||
/>
|
||||
@@ -25,7 +25,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { computed, defineComponent, inject, Ref } from 'vue';
|
||||
import { computed, defineComponent, inject } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import SelectBox from '../Global/SelectBox.vue';
|
||||
|
||||
@@ -41,6 +41,14 @@ export default defineComponent({
|
||||
const { t } = useI18n();
|
||||
|
||||
const sorterOptions = [
|
||||
{
|
||||
id: 'distance',
|
||||
value: 'kilometraż',
|
||||
},
|
||||
{
|
||||
id: 'progress',
|
||||
value: 'przebyta trasa',
|
||||
},
|
||||
{
|
||||
id: 'mass',
|
||||
value: 'masa',
|
||||
@@ -53,10 +61,6 @@ export default defineComponent({
|
||||
id: 'length',
|
||||
value: 'długość',
|
||||
},
|
||||
{
|
||||
id: 'distance',
|
||||
value: 'kilometraż',
|
||||
},
|
||||
{
|
||||
id: 'timetable',
|
||||
value: 'numer pociągu',
|
||||
|
||||
Reference in New Issue
Block a user