Skip to content

Commit

Permalink
chore: enable login chatwoot
Browse files Browse the repository at this point in the history
  • Loading branch information
duchunter committed Apr 3, 2024
1 parent c891b02 commit 37d4764
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/renderer/plugins/mixins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ Vue.mixin({
await this.$cookies.remove('cs_locker_token')
this.$store.commit('CLEAR_ALL_DATA')
this.$router.push(this.localeRoute({ name: 'index' }))
// TODO
// window.$chatwoot?.reset()
window.$chatwoot?.reset()
},

async lock () {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/static/js/chatwoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
})(document, 'script')

window.chatwootSettings = {
baseDomain: '.locker.io',
darkMode: 'auto'
baseDomain: '.locker.io'
// darkMode: 'auto'
}
12 changes: 5 additions & 7 deletions src/renderer/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,11 @@ export const actions = {
console.log('Ignore Chatwoot')
return
}
return {}
// TODO
// return this.$axios
// .$get('cystack_platform/pm/users/me/chatwoot')
// .then(res => {
// commit('UPDATE_USER_CHATWOOT', res)
// }).catch(() => {})
return this.$axios
.$get('cystack_platform/pm/users/me/chatwoot')
.then(res => {
commit('UPDATE_USER_CHATWOOT', res)
}).catch(() => {})
},
LoadNotification ({ commit }) {
// const user = context.state.user
Expand Down

0 comments on commit 37d4764

Please sign in to comment.