share link
This commit is contained in:
Surya Paolo
2023-01-09 15:55:18 +01:00
parent a9367d5aef
commit b98cda2110
14 changed files with 669 additions and 135 deletions

View File

@@ -4479,6 +4479,10 @@ export const tools = {
},
copyToClip(myq: any, mystr: string, show: boolean) {
this.copyStringToClipboard(myq, mystr, show)
},
copyStringToClipboardSilent(mystr: string) {
copyToClipboard(mystr)
@@ -6983,6 +6987,7 @@ export const tools = {
},
async sendMsgTelegramCmd($q: any, $t: any, cmd: number, showmsgsent: boolean, text?: string, title?: string) {
const userStore = useUserStore()
let mydata: IMsgGlobParam = {
typemsg: 0,
@@ -6998,8 +7003,12 @@ export const tools = {
showmsgsent = false
}
return this.sendMsgTelegram($q, $t, mydata, showmsgsent)
if (cmd === shared_consts.CmdToSend.SHARE_MSGREG) {
const link = userStore.getRefLink(userStore.my.username)
tools.copyStringToClipboard($q, link, true)
}
return this.sendMsgTelegram($q, $t, mydata, showmsgsent)
},
getFieldSearchByTable(mytable: string, tablejoin: string, field: string) {