From e2999f37adde852fefafa7d12555e23ca8cd867e Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sat, 8 Sep 2018 00:54:13 +0200 Subject: [PATCH] Only show the reset button if there are messages --- js/devel/settings.js | 3 +++ templates/main.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/devel/settings.js b/js/devel/settings.js index 441b52a..af98201 100644 --- a/js/devel/settings.js +++ b/js/devel/settings.js @@ -76,6 +76,9 @@ var SmsSettings = new Vue({ ContactList.reset(); Conversation.clear(); }); + }, + isContactListEmpty: function () { + return ContactList.contacts.length === 0; } } }); \ No newline at end of file diff --git a/templates/main.php b/templates/main.php index d5802d6..999d3cb 100644 --- a/templates/main.php +++ b/templates/main.php @@ -72,7 +72,7 @@ use \OCA\OcSms\Lib\CountryCodes; -
+