From b2b09a3475294ca0f02ffeff30d9d6518cccb86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20J=C3=A4gle?= Date: Mon, 23 Oct 2017 16:44:47 +0200 Subject: [PATCH] Adapt warning-text for leaving a room. Fixes #92 --- packages/rocketchat-ui/client/views/app/popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rocketchat-ui/client/views/app/popover.js b/packages/rocketchat-ui/client/views/app/popover.js index 85180094ca71..48faa6c80236 100644 --- a/packages/rocketchat-ui/client/views/app/popover.js +++ b/packages/rocketchat-ui/client/views/app/popover.js @@ -181,7 +181,7 @@ Template.popover.events({ swal({ title: t('Are_you_sure'), - text: t(warnText, name), + text: warnText ? t(warnText, name) : '', type: 'warning', showCancelButton: true, confirmButtonColor: '#DD6B55',