Skip to content

Commit

Permalink
Remove synthesis view - not sure at this stage if that is what we wan…
Browse files Browse the repository at this point in the history
…t to display
  • Loading branch information
hfroot committed Apr 30, 2024
1 parent 7857356 commit 0434423
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,14 @@
<div>
<p v-if="badge.earned">{{ badge.subtitle }}</p>
<p v-else>Cet établissement ne respecte pas encore la loi EGAlim pour cette mesure.</p>

<component :is="`${badge.baseComponent}Summary`" :canteen="canteen" :diagnostic="diagnostic" />
</div>
</template>

<script>
import { latestCreatedDiagnostic } from "@/utils"
import DiversificationMeasureSummary from "@/components/DiagnosticSummary/DiversificationMeasureSummary"
import InformationMeasureSummary from "@/components/DiagnosticSummary/InformationMeasureSummary"
import NoPlasticMeasureSummary from "@/components/DiagnosticSummary/NoPlasticMeasureSummary"
import WasteMeasureSummary from "@/components/DiagnosticSummary/WasteMeasureSummary"
export default {
name: "GenericMeasureResults",
props: {
badge: Object,
canteen: Object,
diagnosticSet: Array,
},
components: {
DiversificationMeasureSummary,
InformationMeasureSummary,
NoPlasticMeasureSummary,
WasteMeasureSummary,
},
computed: {
diagnostic() {
return latestCreatedDiagnostic(this.diagnosticSet)
},
},
}
</script>

0 comments on commit 0434423

Please sign in to comment.