Skip to content

Commit 1751faf

Browse files
Antreesybackportbot[bot]
authored andcommitted
fix(CallFailedDialog): expose reload function
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com> [skip ci]
1 parent 6a4db6e commit 1751faf

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/components/CallView/CallFailedDialog.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,19 @@ const message = computed(() => {
4646
})
4747
4848
/**
49-
*
49+
* Reset error status in the store
5050
*/
5151
function clearConnectionFailedError() {
5252
store.dispatch('clearConnectionFailed', props.token)
5353
}
5454
55+
/**
56+
* Reload the page to get a valid room object and HPB settings
57+
*/
58+
function reloadApp() {
59+
window.location.reload()
60+
}
61+
5562
</script>
5663

5764
<template>
@@ -62,6 +69,16 @@ function clearConnectionFailedError() {
6269
<template #icon>
6370
<IconAlertOctagon />
6471
</template>
72+
<template #action>
73+
<NcButton
74+
variant="primary"
75+
@click="reloadApp">
76+
<template #icon>
77+
<IconRefresh />
78+
</template>
79+
{{ t('spreed', 'Reload') }}
80+
</NcButton>
81+
</template>
6582
</NcEmptyContent>
6683
</NcModal>
6784
</template>

0 commit comments

Comments
 (0)