update
This commit is contained in:
parent
f2b6257a43
commit
90cd5ec582
7 changed files with 89 additions and 26 deletions
|
|
@ -209,6 +209,11 @@
|
|||
<v-list-item-title>{{ toSeeItem.token }}</v-list-item-title>
|
||||
<v-list-item-subtitle>Token/clé</v-list-item-subtitle>
|
||||
</v-list-item-content>
|
||||
<v-list-item-action>
|
||||
<v-btn color="info" outlined @click="openPanel(toSeeItem)" small icon>
|
||||
<v-icon small>launch</v-icon>
|
||||
</v-btn>
|
||||
</v-list-item-action>
|
||||
</v-list-item>
|
||||
|
||||
<v-divider />
|
||||
|
|
@ -233,7 +238,6 @@
|
|||
</div>
|
||||
|
||||
<div v-if="toSeeItem.publishedAt !== undefined">
|
||||
<v-divider />
|
||||
<v-list-item>
|
||||
<v-list-item-action />
|
||||
<v-list-item-content>
|
||||
|
|
@ -281,7 +285,8 @@
|
|||
</v-dialog>
|
||||
<Preview
|
||||
:enabled="approveModal"
|
||||
:slug="toApproveItem.slug"
|
||||
:id="toApproveItem._id"
|
||||
:slug="toApproveItem.slugs[0]"
|
||||
:dialogTitle="approveModalTitle"
|
||||
@close="approveModal = false"
|
||||
>
|
||||
|
|
@ -325,11 +330,12 @@ export default {
|
|||
|
||||
data: () => {
|
||||
const item = {
|
||||
_id: '',
|
||||
adminName: '',
|
||||
email: '',
|
||||
validationState: 'unaware',
|
||||
rejectionDescription: '',
|
||||
slug: ''
|
||||
slugs: ['']
|
||||
}
|
||||
return {
|
||||
dialog: false,
|
||||
|
|
@ -518,7 +524,12 @@ export default {
|
|||
},
|
||||
|
||||
openExternal (item) {
|
||||
window.open(process.env.VUE_APP_BASE_URL + '/association/' + item.slug + '?version=proposed', '_blank').focus()
|
||||
window.open(process.env.VUE_APP_BASE_URL + '/association/' + item.slugs[item.slug.length - 1] + '?version=proposed', '_blank').focus()
|
||||
},
|
||||
|
||||
openPanel (item) {
|
||||
const routeData = this.$router.resolve({ name: 'DelegateMain', query: { delegateToken: item.token } })
|
||||
window.open(routeData.href, '_blank').focus()
|
||||
},
|
||||
|
||||
openApproveModal (item) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue