|
@ -30,12 +30,13 @@ |
|
|
> |
|
|
> |
|
|
<fa icon="envelope-open-text" class="fa-fw text-2xl" /> |
|
|
<fa icon="envelope-open-text" class="fa-fw text-2xl" /> |
|
|
</router-link> |
|
|
</router-link> |
|
|
<router-link |
|
|
|
|
|
:to="{ name: 'onboard-meeting-setup' }" |
|
|
<button |
|
|
|
|
|
@click="showOnboardMeetingDialog()" |
|
|
class="flex items-center bg-gradient-to-b from-green-400 to-green-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-1 mr-1 rounded-md" |
|
|
class="flex items-center bg-gradient-to-b from-green-400 to-green-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-1 mr-1 rounded-md" |
|
|
> |
|
|
> |
|
|
<fa icon="chair" class="fa-fw text-2xl" /> |
|
|
<fa icon="chair" class="fa-fw text-2xl" /> |
|
|
</router-link> |
|
|
</button> |
|
|
</span> |
|
|
</span> |
|
|
<span v-else class="flex"> |
|
|
<span v-else class="flex"> |
|
|
<span |
|
|
<span |
|
@ -1398,5 +1399,57 @@ export default class ContactsView extends Vue { |
|
|
5000, |
|
|
5000, |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private async showOnboardMeetingDialog() { |
|
|
|
|
|
try { |
|
|
|
|
|
// First check if they're in a meeting |
|
|
|
|
|
const headers = await getHeaders(this.activeDid); |
|
|
|
|
|
const memberResponse = await this.axios.get( |
|
|
|
|
|
this.apiServer + "/api/partner/groupOnboardMember", |
|
|
|
|
|
{ headers } |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (memberResponse.data.data) { |
|
|
|
|
|
// They're in a meeting, check if they're the host |
|
|
|
|
|
const hostResponse = await this.axios.get( |
|
|
|
|
|
this.apiServer + "/api/partner/groupOnboard", |
|
|
|
|
|
{ headers } |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (hostResponse.data.data) { |
|
|
|
|
|
// They're the host, take them to setup |
|
|
|
|
|
(this.$router as Router).push({ name: "onboard-meeting-setup" }); |
|
|
|
|
|
} else { |
|
|
|
|
|
// They're not the host, take them to list |
|
|
|
|
|
(this.$router as Router).push({ name: "onboard-meeting-list" }); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
// They're not in a meeting, show the dialog |
|
|
|
|
|
this.$notify( |
|
|
|
|
|
{ |
|
|
|
|
|
group: "modal", |
|
|
|
|
|
type: "confirm", |
|
|
|
|
|
title: "Onboarding Meeting", |
|
|
|
|
|
text: "Would you like to start a new meeting?", |
|
|
|
|
|
onYes: () => { |
|
|
|
|
|
(this.$router as Router).push({ name: "onboard-meeting-setup" }); |
|
|
|
|
|
}, |
|
|
|
|
|
yesText: "Start New Meeting", |
|
|
|
|
|
onNo: () => { |
|
|
|
|
|
(this.$router as Router).push({ name: "onboard-meeting-list" }); |
|
|
|
|
|
}, |
|
|
|
|
|
noText: "Join Existing Meeting" |
|
|
|
|
|
}, |
|
|
|
|
|
-1 |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
logConsoleAndDb("Error checking meeting status:" + errorStringForLog(error)); |
|
|
|
|
|
this.danger( |
|
|
|
|
|
"There was an error checking your meeting status.", |
|
|
|
|
|
"Meeting Error" |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|