update
This commit is contained in:
parent
4a94799602
commit
de2e56baae
13 changed files with 314 additions and 171 deletions
|
|
@ -58,7 +58,7 @@
|
|||
<v-tab @click="navigate('DelegateGallery')">
|
||||
Images/vidéos
|
||||
</v-tab>
|
||||
<v-tab @click="navigate('DelegatePresentation')">
|
||||
<v-tab @click="navigate('DelegateDescription')">
|
||||
Description
|
||||
</v-tab>
|
||||
<v-tab @click="navigate('DelegateSchedule')">
|
||||
|
|
@ -254,7 +254,7 @@ export default {
|
|||
selectRoute (route) {
|
||||
const path = route.path.split('/')
|
||||
const name = path[path.length - 1]
|
||||
const routes = ['', 'gallery', 'presentation', 'schedule', 'pricing', 'contact']
|
||||
const routes = ['', 'gallery', 'description', 'schedule', 'pricing', 'contact']
|
||||
this.tab = routes.indexOf(name)
|
||||
},
|
||||
init () {
|
||||
|
|
@ -374,15 +374,22 @@ export default {
|
|||
}
|
||||
},
|
||||
goToPage () {
|
||||
window.open(this.publicUrl, '_blank').focus()
|
||||
window.open(this.$store.state.delegate.publicUrl, '_blank').focus()
|
||||
},
|
||||
openPublishModal () {
|
||||
// compute if the user can ask approval
|
||||
this.publishModal = true
|
||||
const data = this.$store.state.data
|
||||
this.canPublish =
|
||||
data.name.length > 0 &&
|
||||
data.descriptionShort.length > 10
|
||||
this.$store.commit('VALIDATE_MAIN', isValid => {
|
||||
if (isValid) {
|
||||
this.publishModal = true
|
||||
} else {
|
||||
this.$store.commit('ADD_ALERT', {
|
||||
color: 'error',
|
||||
text: 'Vous devez remplir tout les champs requis afin de publier'
|
||||
})
|
||||
this.publishModal = false
|
||||
}
|
||||
this.canPublish = isValid
|
||||
})
|
||||
},
|
||||
askApproval () {
|
||||
this.askingApprovalLoading = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue