1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 13:14:20 +00:00

partage de créations

This commit is contained in:
Maxime Moraine 2020-06-11 15:04:52 +02:00
parent 66757c7cf0
commit 2b9c142467
3 changed files with 9 additions and 18 deletions

View file

@ -54,7 +54,7 @@
</v-card-title>
<v-card-text>
<v-text-field id="copy-uri" outlined readonly label="Copiez le lien pour partager" :hint="hintCopied" :value="shortenURL($site.themeConfig.domain + '/homebrew/?h=' + $store.state.shareURI)" append-outer-icon="mdi-content-copy" @click:append-outer="copyURI('copy-uri')"></v-text-field>
<v-text-field id="copy-uri" outlined readonly label="Copiez le lien pour partager" :hint="hintCopied" :value="$site.themeConfig.domain + '/homebrew/?h=' + $store.state.shareURI" append-outer-icon="mdi-content-copy" @click:append-outer="copyURI('copy-uri')"></v-text-field>
<div class="text-center">
<v-btn color="accent" depressed link :to="{ path: '/homebrew/', query: { h: $store.state.shareURI }}" @click="$store.commit('setIsOpenShareHomebrewDialog', !$store.state.isOpenShareHomebrewDialog)">Voir la page</v-btn>
</div>
@ -175,17 +175,6 @@ export default {
this.$store.commit('setRightDrawer', !this.$store.state.rightDrawer)
},
shortenURL (url) {
// var isgd = require('isgd')
isgd.shorten('http://google.com', function(res) {
console.log(res)
return res
})
return url
},
copyURI (id) {
let toCopy = document.getElementById(id)
toCopy.select()