-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from opendatateam/fix/bouquet-edit-desc
fix: refactor: BouquetEditView markdown desc and availability
- Loading branch information
Showing
8 changed files
with
126 additions
and
94 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/custom/ecospheres/components/BouquetDatasetAvailability.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script setup lang="ts"> | ||
import type { DatasetProperties } from '@/model' | ||
import { isAvailable, Availability } from '@/model' | ||
const missingData = 'Donnée manquante' | ||
const notFoundData = 'Donnée non disponible' | ||
const props = defineProps({ | ||
datasetProperties: { | ||
type: Object as () => DatasetProperties, | ||
required: true | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<DsfrTag | ||
v-if="!isAvailable(props.datasetProperties.availability)" | ||
class="fr-mb-2w uppercase bold" | ||
:label="`${ | ||
props.datasetProperties.availability === Availability.NOT_AVAILABLE | ||
? missingData | ||
: props.datasetProperties.availability === Availability.MISSING | ||
? notFoundData | ||
: '' | ||
}`" | ||
/> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.