mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
feature: oznaczenie pojazdów dla sponsorów
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
>
|
>
|
||||||
<option :value="null" disabled>Wybierz pojazd trakcyjny</option>
|
<option :value="null" disabled>Wybierz pojazd trakcyjny</option>
|
||||||
<option v-for="loco in locoOptions" :value="loco" :key="loco.type">
|
<option v-for="loco in locoOptions" :value="loco" :key="loco.type">
|
||||||
{{ loco.type }}
|
{{ loco.type }}<b v-if="loco.supportersOnly">*</b>
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
<option :value="null" disabled>Wybierz wagon</option>
|
<option :value="null" disabled>Wybierz wagon</option>
|
||||||
|
|
||||||
<option v-for="car in carOptions" :value="car" :key="car.type">
|
<option v-for="car in carOptions" :value="car" :key="car.type">
|
||||||
{{ car.type }}
|
{{ car.type }}<b v-if="car.supportersOnly">*</b>
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="train-image-section">
|
<section class="train-image-section">
|
||||||
<div class="train-image__wrapper">
|
<div class="train-image__wrapper">
|
||||||
<div class="train-image__content">
|
<div class="train-image__content" :class="{'supporter': store.chosenVehicle?.supportersOnly}">
|
||||||
<transition name="img-message-anim">
|
<transition name="img-message-anim">
|
||||||
<div class="empty-message" v-if="store.imageLoading && store.chosenVehicle?.imageSrc">
|
<div class="empty-message" v-if="store.imageLoading && store.chosenVehicle?.imageSrc">
|
||||||
ŁADOWANIE OBRAZU...
|
ŁADOWANIE OBRAZU...
|
||||||
@@ -44,6 +44,8 @@
|
|||||||
: 'Typ konstrukcji: ' + store.chosenVehicle.constructionType
|
: 'Typ konstrukcji: ' + store.chosenVehicle.constructionType
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<b style="color: salmon;" v-if="store.chosenVehicle.supportersOnly">* TYLKO DLA SPONSORÓW</b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
{{ i + 1 }}.
|
{{ i + 1 }}.
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="stock-info__type">
|
<span class="stock-info__type" :class="{ supporter: stock.supportersOnly }">
|
||||||
{{ stock.isLoco ? stock.type : getCarSpecFromType(stock.type) }}
|
{{ stock.isLoco ? stock.type : getCarSpecFromType(stock.type) }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -525,6 +525,10 @@ li > .stock-info {
|
|||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.supporter {
|
||||||
|
color: salmon;
|
||||||
|
}
|
||||||
|
|
||||||
.stock-info {
|
.stock-info {
|
||||||
&__no,
|
&__no,
|
||||||
&__type {
|
&__type {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
@dragover="allowDrop"
|
@dragover="allowDrop"
|
||||||
>
|
>
|
||||||
<span @click="onListItemClick(stockIndex)" :key="stock.id">
|
<span @click="onListItemClick(stockIndex)" :key="stock.id">
|
||||||
<b>
|
<b :class="{ supporter: stock.supportersOnly }">
|
||||||
{{ stock.type }}
|
{{ stock.type }}
|
||||||
</b>
|
</b>
|
||||||
|
|
||||||
@@ -120,5 +120,9 @@ const allowDrop = (e: DragEvent) => {
|
|||||||
max-height: 60px;
|
max-height: 60px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.supporter {
|
||||||
|
color: salmon;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default defineComponent({
|
|||||||
count,
|
count,
|
||||||
imgSrc: vehicle.imageSrc,
|
imgSrc: vehicle.imageSrc,
|
||||||
useType: isLoco ? vehicle.power : vehicle.useType,
|
useType: isLoco ? vehicle.power : vehicle.useType,
|
||||||
supportersOnly: false,
|
supportersOnly: vehicle.supportersOnly,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user