fix: display rotation didn't adapt language changes

This commit is contained in:
fischaxe 2023-04-11 09:41:40 +02:00
parent a01b9fc141
commit 9e2d7b479b

View File

@ -63,8 +63,8 @@
</label> </label>
<div class="col-sm-10"> <div class="col-sm-10">
<select class="form-select" v-model="deviceConfigList.display.rotation"> <select class="form-select" v-model="deviceConfigList.display.rotation">
<option v-for="rotation in displayRotationList" :key="rotation.key" :value="rotation.key"> <option v-for="(rotation, index) in displayRotationList" :key="index" :value="index">
{{ rotation.value }} {{ $t(`deviceadmin.` + rotation) }}
</option> </option>
</select> </select>
</div> </div>
@ -119,10 +119,10 @@ export default defineComponent({
alertType: "info", alertType: "info",
showAlert: false, showAlert: false,
displayRotationList: [ displayRotationList: [
{ key: 0, value: this.$t('deviceadmin.rot0') }, 'rot0',
{ key: 1, value: this.$t('deviceadmin.rot90') }, 'rot90',
{ key: 2, value: this.$t('deviceadmin.rot180') }, 'rot180',
{ key: 3, value: this.$t('deviceadmin.rot270') }, 'rot270',
], ],
} }
}, },