fix SdM
share link
This commit is contained in:
@@ -87,8 +87,11 @@ export default defineComponent({
|
||||
load()
|
||||
}
|
||||
|
||||
function getlinkpage() {
|
||||
return self.location.host + tools.getPathByTable(props.table, myrec.value._id)
|
||||
}
|
||||
function condividipag() {
|
||||
const mystr = self.location.host + tools.getPathByTable(props.table, myrec.value._id)
|
||||
const mystr = getlinkpage()
|
||||
tools.copyStringToClipboard($q, mystr, true)
|
||||
tools.sendMsgTelegramCmd($q, t, shared_consts.MsgTeleg.SHARE_TEXT, false, mystr)
|
||||
return true
|
||||
@@ -120,6 +123,7 @@ export default defineComponent({
|
||||
col,
|
||||
condividipag,
|
||||
showBadge,
|
||||
getlinkpage,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -112,11 +112,24 @@
|
||||
<div class="q-ma-sm">
|
||||
<q-btn
|
||||
v-if="myrec._id"
|
||||
:text-color="$q.dark.isActive ? `white` : `black`" icon="fas fa-share-alt"
|
||||
:text-color="$q.dark.isActive ? `white` : `black`" icon="fas fa-link"
|
||||
label="Condividi"
|
||||
@click="condividipag"></q-btn>
|
||||
</div>
|
||||
</div>
|
||||
<q-page-sticky
|
||||
position="top-right"
|
||||
:offset="[18, 18]"
|
||||
>
|
||||
<q-btn
|
||||
fab
|
||||
glossy
|
||||
class="semi-transparent"
|
||||
icon="fas fa-link"
|
||||
color="primary"
|
||||
@click="tools.copyToClip($q, getlinkpage(), true)"
|
||||
/>
|
||||
</q-page-sticky>
|
||||
|
||||
<br><br>
|
||||
</q-card-section>
|
||||
|
||||
Reference in New Issue
Block a user