From 4e071e353ea5434c13adae5badcd91c5034d95a4 Mon Sep 17 00:00:00 2001 From: jspenguin2017 Date: Wed, 20 Dec 2017 20:55:13 -0700 Subject: [PATCH] add message when nothing to export --- platform/chromium/vapi-common.js | 1 + src/js/nano-dashboard-rules.js | 1 + 2 files changed, 2 insertions(+) diff --git a/platform/chromium/vapi-common.js b/platform/chromium/vapi-common.js index 0b47abde8093e..e6ace50e8f672 100644 --- a/platform/chromium/vapi-common.js +++ b/platform/chromium/vapi-common.js @@ -75,6 +75,7 @@ var i18nPlaceholders = { 'will not be saved.', 'genericFilterReadError': '# Could not load data, please refresh.', 'genericDataSaveError': 'Could not save data, please try again.', + 'genericNothingToExport': 'Nothing to export.', 'nanoCloudNoData': 'No cloud data', diff --git a/src/js/nano-dashboard-rules.js b/src/js/nano-dashboard-rules.js index 2152a56c4ba53..963d00325cd67 100644 --- a/src/js/nano-dashboard-rules.js +++ b/src/js/nano-dashboard-rules.js @@ -304,6 +304,7 @@ window.tabRules = new class tabRules extends Tab { const val = this.editor.getValue(); if (val.trim() === "") { + showInfoModal(vAPI.i18n("genericNothingToExport")); return; }