diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-03-31 08:55:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 08:55:51 +0200 |
commit | 45f34abfe156f8637bb805952716fdad5b25a817 (patch) | |
tree | 6ee169ad8e0e848d2e5152cdc49d9d9ea73d0181 | |
parent | e36d30022ec20e58d8f657d72c1439aa0bff06c2 (diff) | |
parent | ab2b0bd428abc298f34b4ecdbb750c38468b7fa2 (diff) |
Merge pull request #3204 from nextcloud/enh/3144/leave-call-modal-improvements
Improve Leave Call modal
-rw-r--r-- | src/App.vue | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue index 96649a655..bd718516d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -257,9 +257,17 @@ export default { */ Router.beforeEach((to, from, next) => { if (this.isInCall) { - OC.dialogs.confirm( - t('spreed', 'Do you really want to leave the call?'), - t('spreed', 'Leaving call'), + OC.dialogs.confirmDestructive( + t('spreed', 'Navigating away from the page will leave the call in {conversation}', { + conversation: this.getConversationName(this.token) + }), + t('spreed', 'Leave call'), + { + type: OC.dialogs.YES_NO_BUTTONS, + confirm: t('spreed', 'Leave call'), + confirmClasses: 'error', + cancel: t('spreed', 'Stay in call'), + }, (decision) => { if (!decision) { return |