feat(Admin): organization public or not public

This commit is contained in:
Matthieu Bessat 2020-07-25 12:34:40 +02:00
parent cc08e623e7
commit fe1c739ad0

View file

@ -87,7 +87,28 @@
{{ item.description|less }} {{ item.description|less }}
</template> --> </template> -->
<template v-slot:item.validationState="{ item }"> <template v-slot:item.validationState="{ item }">
<v-tooltip top v-if="item.publishedAt == null">
<template v-slot:activator="{ on, attrs }">
<span
v-bind="attrs"
v-on="on">
<v-icon small color="error">public_off</v-icon>
</span>
</template>
<span>Cette association n'a jamais été publié</span>
</v-tooltip>
<v-tooltip top v-else>
<template v-slot:activator="{ on, attrs }">
<span
v-bind="attrs"
v-on="on">
<v-icon small color="success">public</v-icon>
</span>
</template>
<span>Cette association a déjà été publié</span>
</v-tooltip>
<v-chip <v-chip
class="ml-2"
:color="getValidationColor(item.validationState)" :color="getValidationColor(item.validationState)"
dark> dark>
{{ getValidationText(item.validationState) }} {{ getValidationText(item.validationState) }}