update
This commit is contained in:
parent
b8d7b53308
commit
4a94799602
11 changed files with 71 additions and 53 deletions
|
|
@ -42,17 +42,17 @@
|
|||
<v-text-field
|
||||
v-model="editedItem.adminName"
|
||||
required
|
||||
label="Nom (interne) de l'associatiton">
|
||||
label="Nom de l'associatiton">
|
||||
</v-text-field>
|
||||
<v-text-field
|
||||
v-model="editedItem.email"
|
||||
label="E-mail utilisé pour recevoir le lien/la clé d'identification">
|
||||
</v-text-field>
|
||||
<v-select
|
||||
<!-- <v-select
|
||||
:items="validationState"
|
||||
v-model="editedItem.validationState"
|
||||
label="DEBUG: status de la validation"
|
||||
></v-select>
|
||||
></v-select> -->
|
||||
<v-textarea
|
||||
rows="2"
|
||||
row-height="15"
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
</v-chip>
|
||||
</template>
|
||||
<template v-slot:item.actions="{ item }">
|
||||
<v-tooltip top>
|
||||
<v-tooltip top v-if="item.validationState === 'published' || item.validationState === 'rejected'">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn icon small color="success">
|
||||
<v-icon
|
||||
|
|
@ -107,7 +107,7 @@
|
|||
</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Ouvrir la page publique (version non publié)</span>
|
||||
<span>Ouvrir la page publique (version publié)</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
|
|
@ -163,11 +163,11 @@
|
|||
v-bind="attrs"
|
||||
v-on="on"
|
||||
>
|
||||
done
|
||||
grading
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Valider les changements</span>
|
||||
<span>Vérifier les changements</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-slot:no-data>
|
||||
|
|
@ -207,7 +207,7 @@
|
|||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>{{ toSeeItem.token }}</v-list-item-title>
|
||||
<v-list-item-subtitle>Token/clée</v-list-item-subtitle>
|
||||
<v-list-item-subtitle>Token/clé</v-list-item-subtitle>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
|
||||
|
|
@ -285,11 +285,13 @@
|
|||
:dialogTitle="approveModalTitle"
|
||||
@close="approveModal = false"
|
||||
>
|
||||
<v-btn outlined dark text @click="rejectionModal = true">
|
||||
<v-icon>clear</v-icon>
|
||||
<v-btn outlined text dark class="error" @click="rejectionModal = true">
|
||||
<v-icon :left="!$vuetify.breakpoint.mobile">rate_review</v-icon>
|
||||
<span v-if="!$vuetify.breakpoint.mobile">Refuser</span>
|
||||
</v-btn>
|
||||
<v-btn outlined dark text @click="approve()">
|
||||
<v-icon>done</v-icon>
|
||||
<v-btn outlined text dark class="success" @click="approve()">
|
||||
<v-icon :left="!$vuetify.breakpoint.mobile">check_circle</v-icon>
|
||||
<span v-if="!$vuetify.breakpoint.mobile">Publier</span>
|
||||
</v-btn>
|
||||
</Preview>
|
||||
<v-dialog max-width="500px" v-model="rejectionModal">
|
||||
|
|
@ -325,7 +327,7 @@ export default {
|
|||
const item = {
|
||||
adminName: '',
|
||||
email: '',
|
||||
validationState: 'none',
|
||||
validationState: 'unaware',
|
||||
rejectionDescription: '',
|
||||
slug: ''
|
||||
}
|
||||
|
|
@ -483,19 +485,19 @@ export default {
|
|||
},
|
||||
|
||||
generateToken (item) {
|
||||
if (!confirm('Êtes vous sur de reinitialiser la clée de cette association ? Les liens de connexions existants seront inutilisables.')) {
|
||||
if (!confirm('Êtes vous sur de reinitialiser la clé de cette association ? Les liens de connexions existants seront inutilisables.')) {
|
||||
return
|
||||
}
|
||||
this.$apitator.post('/admin/organizations/' + item._id + '/reset-token', {}, { withAuth: true }).then(() => {
|
||||
this.detailsModal = false
|
||||
this.$store.commit('ADD_ALERT', {
|
||||
color: 'success',
|
||||
text: 'La clée de cette association a été reinitialisé'
|
||||
text: 'La clé de cette association a été reinitialisé'
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$store.commit('ADD_ALERT', {
|
||||
color: 'error',
|
||||
text: 'Impossible de reinitialiser la clée de cette association'
|
||||
text: 'Impossible de reinitialiser la clé de cette association'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
|
@ -505,7 +507,7 @@ export default {
|
|||
this.detailsModal = false
|
||||
this.$store.commit('ADD_ALERT', {
|
||||
color: 'success',
|
||||
text: 'Un email va être envoyé à cette association contenant la clée'
|
||||
text: 'Un email va être envoyé à cette association contenant la clé'
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$store.commit('ADD_ALERT', {
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
<span class="headline">{{ formTitle }}</span>
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<a href="https://fontawesome.com/icons?d=gallery&m=free">https://fontawesome.com/icons?d=gallery&m=free</a>
|
||||
<v-text-field
|
||||
v-model="editedItem.name"
|
||||
required
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue