Skip to content

Commit

Permalink
Fix ESLint errors
Browse files Browse the repository at this point in the history
Signed-off-by: David Kesl <[email protected]>
  • Loading branch information
Davek145 committed Sep 25, 2023
1 parent eecf291 commit 89412bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
@checked="(item, check) => $emit('checked', item, check)" />
<div slot="label" class="semantic-class">
{{ className() }}
<div class="semantic-class chip" v-if="includeItemTags" v-for="tag in getNonSemanticTags(model.item)" :key="tag" style="height: 16px; margin-left: 4px">
<template v-if="includeItemTags">
<div class="semantic-class chip" v-for="tag in getNonSemanticTags(model.item)" :key="tag" style="height: 16px; margin-left: 4px">
<div class="chip-media bg-color-blue" style="height: 16px; width: 16px">
<f7-icon slot="media" ios="f7:tag_fill" md="material:label" aurora="f7:tag_fill" style="font-size: 8px; height: 16px; line-height: 16px" />
</div>
<div class="chip-label" style="height: 16px; line-height: 16px">
{{ tag }}
</div>
</div>
</div>
</template>
</div>
<f7-checkbox slot="content-start" v-if="model.checkable"
:checked="model.checked === true" :disabled="model.disabled" @change="check" />
Expand Down Expand Up @@ -86,7 +88,7 @@ export default {
tagsNonS = item.tags.filter((t) =>
t !== item.metadata.semantics.value.split('_').pop() &&
t !== ((item.metadata.semantics.config && item.metadata.semantics.config.relatesTo) ? item.metadata.semantics.config.relatesTo.split('_').pop() : '')
)
)
}
}
return tagsNonS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<model-treeview-item v-for="node in [rootLocations, rootEquipment, rootPoints, rootGroups, rootItems].flat()"
:key="node.item.name" :model="node"
@selected="selectItem" :selected="selectedItem"
:includeItemName="includeItemName" :includeItemTags="includeItemTags"/>
:includeItemName="includeItemName" :includeItemTags="includeItemTags" />
</f7-treeview>
</f7-block>
</f7-col>
Expand Down

0 comments on commit 89412bd

Please sign in to comment.