Skip to content

Commit

Permalink
webapp: Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Dec 17, 2023
1 parent eac4794 commit e0cc155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/GridProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</table>

<div class="accordion" id="accordionProfile">
<div class="accordion-item" v-for="(section, index) in gridProfileList.sections">
<div class="accordion-item" v-for="(section, index) in gridProfileList.sections" :key="index">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" :data-bs-target="`#collapse${index}`" aria-expanded="true" :aria-controls="`collapse${index}`">
{{ section.name }}
Expand All @@ -30,7 +30,7 @@
<div class="accordion-body">
<table class="table table-hover">
<tbody>
<tr v-for="value in section.items">
<tr v-for="value in section.items" :key="value.n">
<th>{{ value.n }}</th>
<td>
<tempplate v-if="value.u!='bool'">
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/views/DeviceAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="row mb-3">
<div class="col-sm-2"></div>
<div class="col-sm-10">
<div class="btn-group" v-for="doc in pinMappingList.find(i => i.name === deviceConfigList.curPin.name)?.links">
<div class="btn-group" v-for="(doc, index) in pinMappingList.find(i => i.name === deviceConfigList.curPin.name)?.links" :key="index">
<a :href="doc.url" class="btn btn-primary" target="_blank">{{ doc.name }}</a>
</div>
</div>
Expand Down Expand Up @@ -114,7 +114,7 @@
<InputElement :label="$t('deviceadmin.EqualBrightness')"
v-model="equalBrightnessCheckVal" type="checkbox" />
<div class="row mb-3" v-for="(ledSetting, index) in deviceConfigList.led">
<div class="row mb-3" v-for="(ledSetting, index) in deviceConfigList.led" :key="index">
<label :for="getLedIdFromNumber(index)" class="col-sm-2 col-form-label">{{
$t('deviceadmin.LedBrightness', {
led: index,
Expand Down

0 comments on commit e0cc155

Please sign in to comment.