Skip to content
Prev Previous commit
Next Next commit
Defer showing the richdocuments frame
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Nov 10, 2021
commit 1c5ec5210d37457363add967790326b4589fc58e
6 changes: 6 additions & 0 deletions src/view/Office.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ export default {
switch (msgId) {
case 'App_LoadingStatus':
if (args.Status === 'Frame_Ready') {
// defer showing the frame until collabora has finished also loading the document
}
if (args.Status === 'Document_Loaded') {
this.loading = false
this.$emit('update:loaded', true)
} else if (args.Status === 'Failed') {
this.loading = false
this.$emit('update:loaded', true)
}
Expand Down