dodano odnośnik do dziennika RJ maszynisty

This commit is contained in:
2024-03-23 00:00:52 +01:00
parent c7162dbd14
commit 66a02d76bd
4 changed files with 14 additions and 4 deletions
@@ -10,6 +10,7 @@
v-if="popupStore.currentPopupContent" v-if="popupStore.currentPopupContent"
@load="onImageLoad" @load="onImageLoad"
@error="onImageError" @error="onImageError"
@click="popupStore.onPopUpHide"
width="300" width="300"
height="176" height="176"
class="rounded-md w-full h-auto" class="rounded-md w-full h-auto"
+11 -2
View File
@@ -46,6 +46,11 @@
<img src="/images/icon-diamond.svg" alt="donator diamond icon" /> <img src="/images/icon-diamond.svg" alt="donator diamond icon" />
</b> </b>
<span v-else>{{ train.driverName }}</span> <span v-else>{{ train.driverName }}</span>
&bull;
<button class="btn--image btn--text btn-journal" v-if="extended">
<img src="/images/icon-train.svg" alt="" />
DZIENNIK
</button>
</div> </div>
</div> </div>
@@ -149,8 +154,7 @@ export default defineComponent({
required: true required: true
}, },
extended: { extended: {
type: Boolean, type: Boolean
default: true
} }
}, },
@@ -201,6 +205,11 @@ export default defineComponent({
vertical-align: text-bottom; vertical-align: text-bottom;
} }
.btn-journal {
display: inline-block;
padding: 0;
}
.timetable-id { .timetable-id {
color: #d2d2d2; color: #d2d2d2;
} }
+1 -1
View File
@@ -6,7 +6,7 @@
<img src="/images/icon-exit.svg" alt="close card" /> <img src="/images/icon-exit.svg" alt="close card" />
</button> </button>
<TrainInfo :train="chosenTrain" :extended="false" ref="trainInfo" /> <TrainInfo :train="chosenTrain" :extended="true" ref="trainInfo" />
<TrainSchedule :train="chosenTrain" tabindex="0" /> <TrainSchedule :train="chosenTrain" tabindex="0" />
</div> </div>
</div> </div>
+1 -1
View File
@@ -20,7 +20,7 @@
@click.stop="selectModalTrain(train.trainId, $event.currentTarget)" @click.stop="selectModalTrain(train.trainId, $event.currentTarget)"
@keydown.enter="selectModalTrain(train.trainId, $event.currentTarget)" @keydown.enter="selectModalTrain(train.trainId, $event.currentTarget)"
> >
<TrainInfo :train="train" /> <TrainInfo :train="train" :extended="false" />
</li> </li>
</transition-group> </transition-group>
</div> </div>