Skip to content

Commit

Permalink
fix: display rotation didn't adapt language changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fischaxe committed Apr 11, 2023
1 parent a01b9fc commit 9e2d7b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webapp/src/views/DeviceAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
</label>
<div class="col-sm-10">
<select class="form-select" v-model="deviceConfigList.display.rotation">
<option v-for="rotation in displayRotationList" :key="rotation.key" :value="rotation.key">
{{ rotation.value }}
<option v-for="(rotation, index) in displayRotationList" :key="index" :value="index">
{{ $t(`deviceadmin.` + rotation) }}
</option>
</select>
</div>
Expand Down Expand Up @@ -119,10 +119,10 @@ export default defineComponent({
alertType: "info",
showAlert: false,
displayRotationList: [
{ key: 0, value: this.$t('deviceadmin.rot0') },
{ key: 1, value: this.$t('deviceadmin.rot90') },
{ key: 2, value: this.$t('deviceadmin.rot180') },
{ key: 3, value: this.$t('deviceadmin.rot270') },
'rot0',
'rot90',
'rot180',
'rot270',
],
}
},
Expand Down

0 comments on commit 9e2d7b4

Please sign in to comment.