Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Gross <[email protected]>
  • Loading branch information
petersutter and grolu authored Jun 26, 2024
1 parent 49a81e5 commit 960c1be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
9 changes: 2 additions & 7 deletions frontend/src/components/GShootListRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ SPDX-License-Identifier: Apache-2.0
<template #activator="slotProps">
<span
v-bind="slotProps.props"
:class="classForValue(cell.value)"
:class="{'text-disabled' : !cell.value}"
>{{ cell.displayValue }}</span>
</template>
{{ cell.header.tooltip }}
</v-tooltip>
<span
v-else-if="cell.displayValue"
:class="classForValue(cell.value)"
:class="{'text-disabled' : !cell.value}"
>
{{ cell.displayValue }}
</span>
Expand Down Expand Up @@ -399,11 +399,6 @@ function showDialog (action) {
})
}
function classForValue (value) {
return {
'text-grey': !value,
}
}
</script>

<style lang="scss" scoped>
Expand Down
8 changes: 2 additions & 6 deletions frontend/src/components/ShootDetails/GCustomFieldsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ SPDX-License-Identifier: Apache-2.0
<template #activator="{ props }">
<span
v-bind="props"
:class="classForValue(field.value)"
:class="{'text-disabled' : !field.value}"
>{{ field.displayValue }}</span>
</template>
{{ field.tooltip }}
</v-tooltip>
<span
v-else-if="field.displayValue"
:class="classForValue(field.value)"
:class="{'text-disabled' : !field.value}"
>
{{ field.displayValue }}
</span>
Expand Down Expand Up @@ -97,9 +97,5 @@ const customFieldValues = computed(() => {
})
})
function classForValue (value) {
return {
'text-grey': !value,
}
}
</script>

0 comments on commit 960c1be

Please sign in to comment.