feat(OrganizationList): page link and id
This commit is contained in:
parent
dc3aaa22c0
commit
fdd4589e1e
1 changed files with 23 additions and 8 deletions
|
@ -118,7 +118,7 @@
|
||||||
</v-chip>
|
</v-chip>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:item.actions="{ item }">
|
<template v-slot:item.actions="{ item }">
|
||||||
<v-tooltip top v-if="item.publishedAt != null">
|
<v-tooltip top>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template v-slot:activator="{ on, attrs }">
|
||||||
<v-btn icon small color="success">
|
<v-btn icon small color="success">
|
||||||
<v-icon
|
<v-icon
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
</v-icon>
|
</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
<span>Ouvrir la page publique (version publié)</span>
|
<span>Ouvrir la page</span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
<v-tooltip top>
|
<v-tooltip top>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template v-slot:activator="{ on, attrs }">
|
||||||
|
@ -243,6 +243,17 @@
|
||||||
</v-list-item-action>
|
</v-list-item-action>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
|
<v-divider />
|
||||||
|
<v-list-item>
|
||||||
|
<v-list-item-icon>
|
||||||
|
<v-icon>label</v-icon>
|
||||||
|
</v-list-item-icon>
|
||||||
|
<v-list-item-content>
|
||||||
|
<v-list-item-title>{{ toSeeItem._id }}</v-list-item-title>
|
||||||
|
<v-list-item-subtitle>Identifiant base de donnée</v-list-item-subtitle>
|
||||||
|
</v-list-item-content>
|
||||||
|
</v-list-item>
|
||||||
|
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
<v-list-item-icon>
|
<v-list-item-icon>
|
||||||
|
@ -254,7 +265,7 @@
|
||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
<div v-if="toSeeItem.updatedAt !== undefined">
|
<div v-if="toSeeItem.updatedAt != null">
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
<v-list-item-action />
|
<v-list-item-action />
|
||||||
<v-list-item-content>
|
<v-list-item-content>
|
||||||
|
@ -264,7 +275,7 @@
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="toSeeItem.publishedAt !== undefined">
|
<div v-if="toSeeItem.publishedAt != null">
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
<v-list-item-action />
|
<v-list-item-action />
|
||||||
<v-list-item-content>
|
<v-list-item-content>
|
||||||
|
@ -275,13 +286,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-list-item three-line>
|
<v-list-item>
|
||||||
<v-list-item-icon>
|
<v-list-item-icon>
|
||||||
<v-icon>refresh</v-icon>
|
<v-icon>refresh</v-icon>
|
||||||
</v-list-item-icon>
|
</v-list-item-icon>
|
||||||
<v-list-item-content>
|
<v-list-item-content>
|
||||||
<v-list-item-title>Générer une nouvelle clé</v-list-item-title>
|
<v-list-item-title>Générer une nouvelle clé</v-list-item-title>
|
||||||
<v-list-item-subtitle>Cette action va remplacer les clés existantes par une nouvelle clé généré aléatoirement</v-list-item-subtitle>
|
<v-list-item-subtitle>Remplacement de l'ancienne clé sans envoyer d'email</v-list-item-subtitle>
|
||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
<v-list-item-action>
|
<v-list-item-action>
|
||||||
<v-btn color="info" outlined @click="generateToken(toSeeItem)" small>Générer</v-btn>
|
<v-btn color="info" outlined @click="generateToken(toSeeItem)" small>Générer</v-btn>
|
||||||
|
@ -612,8 +623,12 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
openExternal (item) {
|
openExternal (item) {
|
||||||
// '?version=proposed'
|
let queryStr = ''
|
||||||
window.open(process.env.VUE_APP_BASE_URL + '/association/' + item.slugs[item.slugs.length - 1], '_blank').focus()
|
if (item.publishedAt == null) {
|
||||||
|
queryStr = '?version=proposed'
|
||||||
|
}
|
||||||
|
|
||||||
|
window.open(process.env.VUE_APP_BASE_URL + '/association/' + item.slugs[item.slugs.length - 1] + queryStr, '_blank').focus()
|
||||||
},
|
},
|
||||||
|
|
||||||
openPanel (item) {
|
openPanel (item) {
|
||||||
|
|
Loading…
Reference in a new issue