Skip to content

Commit 1d61ac9

Browse files
Rash419juliusknorr
authored andcommitted
added new 'Error_Messages' postmessage
- handle App_LoadingStatus Initialized - using Error_Messages richdocuments can pass custom error msg to collabora with nextcloud documentation link Signed-off-by: Rashesh Padia <[email protected]>
1 parent 3ae186e commit 1d61ac9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/view/Office.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,14 @@ export default {
312312
} else if (args.Status === 'Failed') {
313313
this.loading = LOADING_STATE.FAILED
314314
this.$emit('update:loaded', true)
315+
} else if (args.Status === 'Initialized') {
316+
// collabora iframe is ready to handle postMessages
317+
this.sendPostMessage('Error_Messages', {
318+
websocketconnectionfailed: {
319+
msg: t('richdocuments', 'Failed to load {productName} - socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout', { productName: loadState('richdocuments', 'productName', 'Nextcloud Office') }) + ' %url',
320+
url: 'https://docs.nextcloud.com/server/latest/admin_manual/office/proxy.html',
321+
},
322+
})
315323
}
316324
break
317325
case 'Action_Load_Resp':

0 commit comments

Comments
 (0)