Skip to content

Commit 6826501

Browse files
authored
Merge pull request #16676 from nextcloud/backport/16626/stable32
2 parents 8500e81 + 7635042 commit 6826501

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/components/CallView/CallFailedDialog.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
import { t } from '@nextcloud/l10n'
88
import { computed } from 'vue'
99
import { useStore } from 'vuex'
10+
import NcButton from '@nextcloud/vue/components/NcButton'
1011
import NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent'
1112
import NcModal from '@nextcloud/vue/components/NcModal'
1213
import IconAlertOctagonOutline from 'vue-material-design-icons/AlertOctagonOutline.vue'
14+
import IconRefresh from 'vue-material-design-icons/Refresh.vue'
1315
import { messagePleaseTryToReload } from '../../utils/talkDesktopUtils.ts'
1416
1517
const props = defineProps({
@@ -46,12 +48,19 @@ const message = computed(() => {
4648
})
4749
4850
/**
49-
*
51+
* Reset error status in the store
5052
*/
5153
function 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>

0 commit comments

Comments
 (0)