Code cleaning

This commit is contained in:
Porras-Bernardez 2024-08-28 14:34:46 +02:00
parent 9ad4037c74
commit 6fb7ad0e93
3 changed files with 4 additions and 24 deletions

View file

@ -5,7 +5,7 @@ import { Component, Vue, Prop, Emit } from "vue-facing-decorator";
name: "ActiveFacetCategory",
})
export default class ActiveFacetCategory extends Vue {
@Prop({
type: Array<string>,
})
@ -46,7 +46,7 @@ export default class ActiveFacetCategory extends Vue {
case "subjects":
return "keyword";
case "doctype":
return "Data Type";
return "data type";
default:
return this.categoryName;
}
@ -59,7 +59,7 @@ export default class ActiveFacetCategory extends Vue {
*/
filterItemsAlias(categoryAlias: string): string {
console.log(categoryAlias);
if (categoryAlias === ("Data Type") || categoryAlias === ("language")) {
if (categoryAlias === ("data type") || categoryAlias === ("language")) {
/**
* Iterate over the filterItems array using the map method to create a new array (updatedItems).
* For each item in the array, check if the item exists as a key in the replacements map.

View file

@ -5,7 +5,6 @@
<span>{{ categoryAlias + ": " }}</span>
<!-- <a v-if="filterItems && filterItems.length > 0" class="gsaterm">{{ filterItems.join(" | ") }}</a> -->
<a v-if="filterItems && filterItems.length > 0" class="gsaterm">{{ filterItemsAlias(categoryAlias) }}</a>
</label>
</div>
</template>
@ -44,6 +43,7 @@ input[type="checkbox"].css-checkbox {
}
input[type="checkbox"].css-checkbox + label.css-label {
text-transform: capitalize;
padding-left: 25px;
/* height: 24px;
display: inline-block; */