Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit e3763e5

Browse files
authored
Merge pull request #774 from prachi00/feat-mailto
#760 add mailto: in profile section email
2 parents c7715eb + 0dfa4c5 commit e3763e5

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/views/OnChainProperty.vue

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
:pack="icons[index].pack"
1212
:icon="icons[index].icon"
1313
v-clipboard:copy="icons[index].label"
14-
@click.native="toast('Copied to clipboard')"
15-
>
16-
</b-icon>
14+
@click.native="icons[index].icon === 'envelope'
15+
? openMail(icons[index].label)
16+
: toast('Copied to clipboard')">
17+
</b-icon>
1718
<b-icon class="property"
1819
v-else
1920
:size="icons[index].size"
@@ -134,10 +135,14 @@ export default class OnChainProperty extends Vue{
134135
window.open('https://twitter.com/' + handle.replace(/@/, ''), '_blank');
135136
}
136137
137-
@Watch('legal')
138-
async watchLegal(newLegal: string, oldLegal: string){
139-
this.legalVerified();
140-
}
138+
public openMail(handle: string): void {
139+
location.href = `mailto:${handle}?subject=I%20like%20your%20Creation%20on%20KodaDot&body=Hey%2C%20I've%20found%20your%20creation%20on%20KodaDot%20interesting.%0D%0ACan%20you%20please%20tell%20me%20more%20about%20it%3F`;
140+
}
141+
142+
@Watch('legal')
143+
async watchLegal(newLegal: string, oldLegal: string) {
144+
this.legalVerified();
145+
}
141146
142147
@Watch('email')
143148
async watchEmail(newEmail: string, oldEmail: string){

0 commit comments

Comments
 (0)