Skip to content

Commit

Permalink
fixup! feat: add conference field
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Jul 28, 2023
1 parent 8c44a94 commit a8511fc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/Editor/Invitees/InviteesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,26 @@ export default {
this.showFreeBusyModel = false
},
async createTalkRoom() {
const NEW_LINE = '\r\n'
try {
this.creatingTalkRoom = true
const url = await createTalkRoom(
this.calendarObjectInstance.title,
this.calendarObjectInstance.description,
)
let newDescription
if (!this.calendarObjectInstance.description) {
newDescription = url + NEW_LINE
} else {
newDescription = this.calendarObjectInstance.description + NEW_LINE + NEW_LINE + url + NEW_LINE
}
this.$store.commit('changeDescription', {
calendarObjectInstance: this.calendarObjectInstance,
description: newDescription,
})
this.$store.commit('changeConference', {
calendarObjectInstance: this.calendarObjectInstance,
conference: url,
Expand Down

0 comments on commit a8511fc

Please sign in to comment.