add locals - Endstop Panel

This commit is contained in:
Emperor 2021-04-06 23:15:09 +02:00 committed by Stefan Dej
parent 9e88b7125f
commit dc977a7c32
2 changed files with 17 additions and 3 deletions

View File

@ -11,13 +11,27 @@
<v-row v-for="(status, index) of sortEndstops" v-bind:key="index">
<v-col class="py-1">
<label class="mt-1 d-inline-block">{{ $t('Settings.EndstopPanel.Endstop')}} <b>{{ index.toUpperCase() }}</b></label>
<v-chip class="float-right" small :color="status === 'open' ? 'green' : 'red' " text-color="white">{{ status }}</v-chip>
<v-chip class="float-right" small :color="status === 'open' ? 'green' : 'red' " text-color="white">
<template v-if="status === 'open'">
{{ $t('Settings.EndstopPanel.open')}}
</template>
<template v-else>
{{ $t('Settings.EndstopPanel.TRIGGERED')}}
</template>
</v-chip>
</v-col>
</v-row>
<v-row v-if="probe !== false">
<v-col class="py-1">
<label class="mt-1 d-inline-block">Probe</label>
<v-chip class="float-right" small :color="probe ? 'red' : 'green' " text-color="white">{{ probe ? 'TRIGGERED' : 'open' }}</v-chip>
<v-chip class="float-right" small :color="probe ? 'red' : 'green' " text-color="white">
<template v-if="probe">
{{ $t('Settings.EndstopPanel.TRIGGERED')}}
</template>
<template v-else>
{{ $t('Settings.EndstopPanel.open')}}
</template>
</v-chip>
</v-col>
</v-row>
</div>

View File

@ -1,5 +1,5 @@
{
"title": "русский",
"title": "Pусский",
"App": {
"Connecting": "Подключиться к сайту",
"To": "на сайте",