Skip to content

Commit

Permalink
added new 'Error_Messages' postmessage
Browse files Browse the repository at this point in the history
- so that collbora online can show a custom error msg  with
  nextcloud documentation link

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
  • Loading branch information
Rash419 committed Oct 10, 2023
1 parent 28d6a71 commit 02adaf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/Office.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ export default {
this.loading = LOADING_STATE.FRAME_READY
this.$emit('update:loaded', true)
FilesAppIntegration.initAfterReady()
this.sendPostMessage('Error_Messages', { websocketconnectionfailed: 'Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy conifguration please checkout https://docs.nextcloud.com/server/latest/admin_manual/office/proxy.html' })
} else if (args.Status === 'Document_Loaded') {
this.documentReady()
} else if (args.Status === 'Failed') {
Expand Down

0 comments on commit 02adaf4

Please sign in to comment.