This commit is contained in:
Matthieu Bessat 2020-07-22 10:00:12 +02:00
commit e987cf6c69
15 changed files with 365 additions and 179 deletions

View file

@ -284,6 +284,7 @@
</v-card>
</v-dialog>
<Preview
ref="preview"
:enabled="approveModal"
:id="toApproveItem._id"
:slug="toApproveItem.slugs[0]"
@ -524,7 +525,8 @@ export default {
},
openExternal (item) {
window.open(process.env.VUE_APP_BASE_URL + '/association/' + item.slugs[item.slug.length - 1] + '?version=proposed', '_blank').focus()
// '?version=proposed'
window.open(process.env.VUE_APP_BASE_URL + '/association/' + item.slugs[item.slugs.length - 1], '_blank').focus()
},
openPanel (item) {
@ -533,6 +535,7 @@ export default {
},
openApproveModal (item) {
this.$refs.preview.reload()
this.approveModal = true
this.toApproveItem = item
this.approved = false