mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Fix routingu widoków i filtrowania scenerii
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
<b class="text--grayed">{{ $t('journal.dispatcher-name') }} </b>
|
||||
<router-link
|
||||
class="dispatcher-link"
|
||||
:to="`/journal?view=dispatchers&dispatcherName=${item.authorName}`"
|
||||
:to="`/journal/dispatchers?dispatcherName=${item.authorName}`"
|
||||
>{{ item.authorName }}</router-link
|
||||
>
|
||||
</div>
|
||||
@@ -247,14 +247,14 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.fetchHistoryData();
|
||||
},
|
||||
|
||||
activated() {
|
||||
window.addEventListener('scroll', this.handleScroll);
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.search();
|
||||
},
|
||||
|
||||
deactivated() {
|
||||
window.removeEventListener('scroll', this.handleScroll);
|
||||
},
|
||||
@@ -263,7 +263,10 @@ export default defineComponent({
|
||||
navigateToTimetable(historyItem: TimetableHistory) {
|
||||
if (historyItem.terminated) return;
|
||||
|
||||
this.navigateToTrain(historyItem.trainNo, historyItem.driverName);
|
||||
this.navigateTo('/trains', {
|
||||
trainNo: historyItem.trainNo,
|
||||
driverName: historyItem.driverName,
|
||||
});
|
||||
},
|
||||
|
||||
closeCard() {
|
||||
|
||||
Reference in New Issue
Block a user