Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion src/components/CallView/CallFailedDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
import { t } from '@nextcloud/l10n'
import { computed } from 'vue'
import { useStore } from 'vuex'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent'
import NcModal from '@nextcloud/vue/components/NcModal'
import IconAlertOctagonOutline from 'vue-material-design-icons/AlertOctagonOutline.vue'
import IconRefresh from 'vue-material-design-icons/Refresh.vue'
import { messagePleaseTryToReload } from '../../utils/talkDesktopUtils.ts'

const props = defineProps({
Expand Down Expand Up @@ -46,12 +48,19 @@ const message = computed(() => {
})

/**
*
* Reset error status in the store
*/
function clearConnectionFailedError() {
store.dispatch('clearConnectionFailed', props.token)
}

/**
* Reload the page to get a valid room object and HPB settings
*/
function reloadApp() {
window.location.reload()
}

</script>

<template>
Expand All @@ -64,6 +73,16 @@ function clearConnectionFailedError() {
<template #icon>
<IconAlertOctagonOutline />
</template>
<template #action>
<NcButton
variant="primary"
@click="reloadApp">
<template #icon>
<IconRefresh />
</template>
{{ t('spreed', 'Reload') }}
</NcButton>
</template>
</NcEmptyContent>
</NcModal>
</template>
Loading