From 9dbf789b0c90e7b451d42027a53e8c36665840f6 Mon Sep 17 00:00:00 2001 From: Vishwas Date: Fri, 22 Jul 2022 00:27:59 +0530 Subject: [PATCH 1/2] updated teg --- .../participant/ActionInputs/TelegramJoin.vue | 13 +++++++++++++ .../participant/ActionInputs/TwitterFollow.vue | 9 +++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/participant/ActionInputs/TelegramJoin.vue b/src/components/participant/ActionInputs/TelegramJoin.vue index 271276b1..2cecfe4c 100644 --- a/src/components/participant/ActionInputs/TelegramJoin.vue +++ b/src/components/participant/ActionInputs/TelegramJoin.vue @@ -95,6 +95,19 @@ export default { }, }; }, + updated() { + try { + if (this.data.value) { + if (this.tg.sourceScreenName == "" || this.tg.targetScreenName == ""){ + const tg = JSON.parse(this.data.value); + this.tg = { ...tg }; + } + } + } catch (e) { + this.tg.sourceScreenName = this.data.value; + } + }, + async mounted() { try { if (this.data.value) { diff --git a/src/components/participant/ActionInputs/TwitterFollow.vue b/src/components/participant/ActionInputs/TwitterFollow.vue index 381d02bc..1f8cd202 100644 --- a/src/components/participant/ActionInputs/TwitterFollow.vue +++ b/src/components/participant/ActionInputs/TwitterFollow.vue @@ -108,12 +108,13 @@ export default { }, updated() { try { - if (this.data.value && this.twitter.sourceScreenName == "") { - const twitter = JSON.parse(this.data.value); - this.twitter = { ...twitter }; + if (this.data.value ) { + if (this.twitter.sourceScreenName == "" || this.twitter.targetScreenName == ""){ + const twitter = JSON.parse(this.data.value); + this.twitter = { ...twitter }; + } } } catch (e) { - console.error(e) this.twitter.sourceScreenName = this.data.value; } }, From ad3da2d76185dd37af72a0f0622cb24c0e39add5 Mon Sep 17 00:00:00 2001 From: Vishwas Date: Fri, 22 Jul 2022 02:57:59 +0530 Subject: [PATCH 2/2] fix many bugs --- src/components/participant/Action.vue | 19 +++++------ .../participant/ActionInputs/PrizeCard.vue | 32 +++++++------------ src/views/participant/Event.vue | 6 ++-- src/views/participant/Home.vue | 2 +- 4 files changed, 25 insertions(+), 34 deletions(-) diff --git a/src/components/participant/Action.vue b/src/components/participant/Action.vue index 32dc9ef5..75f679e5 100644 --- a/src/components/participant/Action.vue +++ b/src/components/participant/Action.vue @@ -1,5 +1,6 @@