File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 77import { t } from ' @nextcloud/l10n'
88import { computed } from ' vue'
99import { useStore } from ' vuex'
10+ import NcButton from ' @nextcloud/vue/components/NcButton'
1011import NcEmptyContent from ' @nextcloud/vue/components/NcEmptyContent'
1112import NcModal from ' @nextcloud/vue/components/NcModal'
1213import IconAlertOctagonOutline from ' vue-material-design-icons/AlertOctagonOutline.vue'
13- import { messagePleaseTryToReload } from ' ../../utils/talkDesktopUtils.ts'
14+ import IconRefresh from ' vue-material-design-icons/Refresh.vue'
15+ import { messagePleaseTryToReload , messageReload } from ' ../../utils/talkDesktopUtils.ts'
1416
1517const props = defineProps ({
1618 token: {
@@ -46,12 +48,19 @@ const message = computed(() => {
4648})
4749
4850/**
49- *
51+ * Reset error status in the store
5052 */
5153function clearConnectionFailedError() {
5254 store .dispatch (' clearConnectionFailed' , props .token )
5355}
5456
57+ /**
58+ * Reload the page to get a valid room object and HPB settings
59+ */
60+ function reloadApp() {
61+ window .location .reload ()
62+ }
63+
5564 </script >
5665
5766<template >
@@ -64,6 +73,16 @@ function clearConnectionFailedError() {
6473 <template #icon >
6574 <IconAlertOctagonOutline />
6675 </template >
76+ <template #action >
77+ <NcButton
78+ variant =" primary"
79+ @click =" reloadApp" >
80+ <template #icon >
81+ <IconRefresh />
82+ </template >
83+ {{ messageReload }}
84+ </NcButton >
85+ </template >
6786 </NcEmptyContent >
6887 </NcModal >
6988</template >
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ export const messagePleaseReload = IS_DESKTOP
1212export const messagePleaseTryToReload = IS_DESKTOP
1313 ? t ( 'spreed' , 'Please try to restart the app.' )
1414 : t ( 'spreed' , 'Please try to reload the page.' )
15+
16+ export const messageReload = IS_DESKTOP
17+ ? t ( 'spreed' , 'Restart' )
18+ : t ( 'spreed' , 'Reload' )
You can’t perform that action at this time.
0 commit comments