File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
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'
14+ import IconRefresh from ' vue-material-design-icons/Refresh.vue'
1315import { messagePleaseTryToReload } from ' ../../utils/talkDesktopUtils.ts'
1416
1517const props = defineProps ({
@@ -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+ {{ t('spreed', 'Reload') }}
84+ </NcButton >
85+ </template >
6786 </NcEmptyContent >
6887 </NcModal >
6988</template >
You can’t perform that action at this time.
0 commit comments