Skip to content

Commit

Permalink
feat(members): add magic wallet link #2574
Browse files Browse the repository at this point in the history
feat(members): add magic wallet link #2574
  • Loading branch information
evgenibir authored Feb 22, 2024
2 parents bd1fc78 + 6de87b2 commit faa6527
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/pages/dho/Members.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import { mapGetters, mapActions } from 'vuex'
import { copyToClipboard } from 'quasar'
import { MEMBER_TYPE, ORIGIN } from '~/const'
import { MEMBER_TYPE } from '~/const'
import { documents } from '~/mixins/documents'
import ipfsy from '~/utils/ipfsy'
import gql from 'graphql-tag'
Expand Down Expand Up @@ -356,18 +356,15 @@ export default {
async _createInviteLink () {
try {
this.state = STATES.CREATING_LINK
// TODO: Remove when wallet is ready
const { dhoname } = this.$router.history.current.params
this.inviteURL = `${ORIGIN}/${dhoname}/login`
// const invite = await this.createInviteLink()
// const url = new URL(process.env.JOIN_URI)
const invite = await this.createInviteLink()
const url = new URL(process.env.JOIN_URI)
// Object.keys(invite).forEach(key => {
// url.searchParams.set(key, invite[key])
// })
Object.keys(invite).forEach(key => {
url.searchParams.set(key, invite[key])
})
// this.inviteURL = url.toString()
this.inviteURL = url.toString()
this.state = STATES.CREATED_LINK
} catch (e) {
const message = e.message || e.cause.message
Expand Down

0 comments on commit faa6527

Please sign in to comment.