Skip to content

Commit

Permalink
Merge pull request #1486 from hypersign-protocol/v5.6.0
Browse files Browse the repository at this point in the history
fixed twitter/telegram names overlap issue
  • Loading branch information
Vishwas1 authored Jul 21, 2022
2 parents 51418c3 + ddbc7b4 commit d648599
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import Messages from "../../../utils/messages/participants/en";
import apiClient from "../../../mixins/apiClientMixin.js";
export default {
name: "TwitterRetweet",
name: "TelegramJoin",
props: {
idValue: {
required: true,
Expand All @@ -92,6 +92,17 @@ export default {
};
},
updated() {
try {
if (this.data.value && this.tg.sourceScreenName == "") {
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) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/participant/ActionInputs/DiscordJoin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import notificationMixins from "../../../mixins/notificationMixins";
import Messages from "../../../utils/messages/participants/en";
export default {
components: { Loading },
name: "TwitterRetweet",
name: "DiscordJoin",
props: {
idValue: {
required: true,
Expand Down
13 changes: 12 additions & 1 deletion src/components/participant/ActionInputs/TwitterFollow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import Messages from "../../../utils/messages/participants/en";
import config from "../../../config";
export default {
components: { Loading },
name: "TwitterRetweet",
name: "TwitterFollow",
props: {
idValue: {
required: true,
Expand Down Expand Up @@ -118,6 +118,17 @@ computed:{
fullPage: true,
};
},
updated() {
try {
if (this.data.value && this.twitter.sourceScreenName == "") {
const twitter = JSON.parse(this.data.value);
this.twitter = { ...twitter };
}
} catch (e) {
console.error(e)
this.twitter.sourceScreenName = this.data.value;
}
},
mounted() {
try {
if (this.data.value) {
Expand Down

0 comments on commit d648599

Please sign in to comment.