+
({{ rec.num_tess }})
-
+
-
-
+
{{ rec.commento_al_sognatore }}
+
+ ({{ rec.ind_order }})
+
diff --git a/src/components/CMyNave/CMyNave.ts b/src/components/CMyNave/CMyNave.ts
index b6a7c16..7d9e5ba 100755
--- a/src/components/CMyNave/CMyNave.ts
+++ b/src/components/CMyNave/CMyNave.ts
@@ -13,11 +13,12 @@ import { CMyChipList } from '../CMyChipList'
import { CVideo } from '../CVideo'
import { validations } from './CMyNave-validate'
import { validationMixin } from 'vuelidate'
+import { CCopyBtn } from '../CCopyBtn'
@Component({
mixins: [validationMixin],
validations,
- components: { CTitleBanner, CMyChipList, CVideo }
+ components: { CTitleBanner, CMyChipList, CVideo, CCopyBtn }
})
export default class CMyNave extends MixinNave {
@@ -62,6 +63,7 @@ export default class CMyNave extends MixinNave {
public username_sostituire: string = ''
public userfreestr: string = ''
public commento_al_sognatore: string = ''
+ public tabpagam: string = 'paypal'
public MyPagination: {
sortBy: string,
descending: boolean,
@@ -100,7 +102,13 @@ export default class CMyNave extends MixinNave {
{ name: 'date_made_gift', align: 'center', label: 'Inviato', field: 'date_made_gift', sortable: true },
// { name: 'tel', align: 'center', label: 'Tel', field: 'tel', sortable: true },
{ name: 'made_gift', align: 'center', label: 'Conferm.', field: 'made_gift', sortable: true },
- { name: 'commento_al_sognatore', align: 'center', label: 'Commento', field: 'commento_al_sognatore', sortable: true },
+ {
+ name: 'commento_al_sognatore',
+ align: 'center',
+ label: 'Commento',
+ field: 'commento_al_sognatore',
+ sortable: true
+ },
]
public tragitto = [
@@ -211,6 +219,10 @@ export default class CMyNave extends MixinNave {
} else if (this.sonoSognatore()) {
this.tabnave = 'sognatore'
}
+
+ if (!!this.getRevolutPagamentoSognatore()) {
+ this.tabpagam = 'revolut'
+ }
}
public getListaDonatoriDaConfermare() {
@@ -330,7 +342,7 @@ export default class CMyNave extends MixinNave {
return false
}
- get getsuperchat(){
+ get getsuperchat() {
if (!!this.flotta) {
return this.flotta.link_superchat
}
@@ -412,14 +424,17 @@ export default class CMyNave extends MixinNave {
const mymsg = this.$t('dashboard.msg_bot_conferma', {
donatore: this.iodonatore.name + ' ' + this.iodonatore.surname,
- sognatore: this.sognatoredelDono().name + ' ' + this.sognatoredelDono().surname
+ sognatore: this.sognatoredelDono().name + ' ' + this.sognatoredelDono().surname,
+ commento: this.commento_al_sognatore + ' (' + this.tabpagam + ')',
})
tools.askConfirm(this.$q, msgtitle, msginvia + ' ' + '?', translate('dialog.yes'), translate('dialog.no'), this, '', lists.MenuAction.DONO_INVIATO, 0, {
param1: {
+ riga: this.posiz.riga,
+ col: this.posiz.col,
_id: this.iodonatore._id,
date_made_gift: tools.getDateNow(),
- commento_al_sognatore: this.commento_al_sognatore,
+ commento_al_sognatore: this.commento_al_sognatore + ' (' + this.tabpagam + ')',
},
param2: this.sognatoredelDono().username,
param3: mymsg
@@ -466,6 +481,24 @@ export default class CMyNave extends MixinNave {
return ''
}
+ public getlinkRevolutSognatore() {
+ const rec = this.sognatoredelDono()
+ if (!!rec) {
+ if (!!rec.profile)
+ return rec.profile.revolut
+ }
+ return ''
+ }
+
+ public getRevolutPagamentoSognatore() {
+ const rec = this.sognatoredelDono()
+ if (!!rec) {
+ if (!!rec.profile)
+ return rec.profile.revolut
+ }
+ return ''
+ }
+
public getpaypalmePagamentoSognatore() {
const rec = this.sognatoredelDono()
if (!!rec) {
@@ -484,6 +517,14 @@ export default class CMyNave extends MixinNave {
return ''
}
+ public getnomesognatore() {
+ const rec = this.sognatoredelDono()
+ if (!!rec) {
+ return rec.name + ' ' + rec.surname
+ }
+ return ''
+ }
+
get getDonoInviato() {
if (!!this.iodonatore) {
return !!this.iodonatore.date_made_gift
@@ -1128,4 +1169,13 @@ export default class CMyNave extends MixinNave {
return !this.FattoDono && !this.sonoSecondaTessituraDonatore() && !this.listanavi
}
+ get getImgPaypal() {
+ if (!!this.iodonatore) {
+ if (tools.getlang() === 'it')
+ return 'statics/images/send_to_a_friend-it.jpg'
+ }
+
+ return 'statics/images/send_to_a_friend.jpg'
+ }
+
}
diff --git a/src/components/CMyNave/CMyNave.vue b/src/components/CMyNave/CMyNave.vue
index d1dd008..508807f 100755
--- a/src/components/CMyNave/CMyNave.vue
+++ b/src/components/CMyNave/CMyNave.vue
@@ -115,45 +115,114 @@