Skip to content

Commit

Permalink
fix(members): add regular invite
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic committed Apr 25, 2024
1 parent d373428 commit 2ed99e7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 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 } from '~/const'
import { MEMBER_TYPE, ORIGIN } from '~/const'
import { documents } from '~/mixins/documents'
import ipfsy from '~/utils/ipfsy'
import gql from 'graphql-tag'
Expand Down Expand Up @@ -357,14 +357,17 @@ export default {
try {
this.state = STATES.CREATING_LINK
const invite = await this.createInviteLink()
const url = new URL(process.env.JOIN_URI)
const { dhoname } = this.$router.history.current.params
this.inviteURL = `${ORIGIN}/${dhoname}/login`
Object.keys(invite).forEach(key => {
url.searchParams.set(key, invite[key])
})
// const invite = await this.createInviteLink()
// const url = new URL(process.env.JOIN_URI)
// 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 2ed99e7

Please sign in to comment.