mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 22:08:12 +00:00
chore(driver): changed button to navigate to player's profile
This commit is contained in:
@@ -11,8 +11,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="actions actions-right">
|
<div class="actions actions-right">
|
||||||
<a class="a-button btn--filled btn--image" :href="`https://srjp-td2.web.app/?id=${chosenTrain.id}`"
|
<a
|
||||||
target="_blank">
|
class="a-button btn--filled btn--image"
|
||||||
|
:href="`https://srjp-td2.web.app/?id=${chosenTrain.id}`"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
<span class="hidable">
|
<span class="hidable">
|
||||||
{{ t('trains.driver-srjp-link') }}
|
{{ t('trains.driver-srjp-link') }}
|
||||||
</span>
|
</span>
|
||||||
@@ -20,17 +23,18 @@
|
|||||||
<img src="/images/icon-srjp.svg" alt="srjp icon" />
|
<img src="/images/icon-srjp.svg" alt="srjp icon" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<router-link :to="`/journal/timetables?search-driver=${chosenTrain.driverName}`"
|
<router-link
|
||||||
class="a-button btn--filled btn--image">
|
:to="`/profile?playerId=${chosenTrain.driverId}`"
|
||||||
|
class="a-button btn--filled btn--image"
|
||||||
|
>
|
||||||
<span class="hidable">
|
<span class="hidable">
|
||||||
{{ t('trains.driver-journal-link') }}
|
{{ t('trains.driver-profile-link') }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<img src="/images/icon-train.svg" alt="train icon" />
|
<img src="/images/icon-user.svg" alt="user icon" />
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -55,11 +59,9 @@ function routerReturn() {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@use '../../styles/responsive';
|
@use '../../styles/responsive';
|
||||||
|
|
||||||
|
|
||||||
.actions-container {
|
.actions-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
@@ -72,7 +74,7 @@ function routerReturn() {
|
|||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions-container>.actions>.a-button {
|
.actions-container > .actions > .a-button {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
border-radius: 0.5em 0.5em 0 0;
|
border-radius: 0.5em 0.5em 0 0;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -428,7 +428,7 @@
|
|||||||
"last-seen-ago": "since {minutes} minutes",
|
"last-seen-ago": "since {minutes} minutes",
|
||||||
"scenery-offline": "Offline ride",
|
"scenery-offline": "Offline ride",
|
||||||
"timeout": "An error occured while trying to refresh SWDR timetable data!",
|
"timeout": "An error occured while trying to refresh SWDR timetable data!",
|
||||||
"driver-journal-link": "DRIVER JOURNAL",
|
"driver-profile-link": "PLAYER'S PROFILE",
|
||||||
"driver-srjp-link": "SRJP",
|
"driver-srjp-link": "SRJP",
|
||||||
"driver-return-link": "RETURN",
|
"driver-return-link": "RETURN",
|
||||||
"driver-not-found-header": "Train not found! :/",
|
"driver-not-found-header": "Train not found! :/",
|
||||||
|
|||||||
+1
-1
@@ -414,7 +414,7 @@
|
|||||||
"last-seen-ago": "od {minutes} minut",
|
"last-seen-ago": "od {minutes} minut",
|
||||||
"scenery-offline": "Przejazd offline",
|
"scenery-offline": "Przejazd offline",
|
||||||
"timeout": "Wystąpił problem z aktualizacją rozkładów jazdy z SWDR",
|
"timeout": "Wystąpił problem z aktualizacją rozkładów jazdy z SWDR",
|
||||||
"driver-journal-link": "DZIENNIK MASZYNISTY",
|
"driver-profile-link": "PROFIL GRACZA",
|
||||||
"driver-srjp-link": "SRJP",
|
"driver-srjp-link": "SRJP",
|
||||||
"driver-return-link": "POWRÓT",
|
"driver-return-link": "POWRÓT",
|
||||||
"driver-not-found-header": "Nie znaleziono pociągu! :/",
|
"driver-not-found-header": "Nie znaleziono pociągu! :/",
|
||||||
|
|||||||
Reference in New Issue
Block a user