Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
add message when nothing to export
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Dec 21, 2017
1 parent b07325c commit 4e071e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions platform/chromium/vapi-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/js/nano-dashboard-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ window.tabRules = new class tabRules extends Tab {

const val = this.editor.getValue();
if (val.trim() === "") {
showInfoModal(vAPI.i18n("genericNothingToExport"));
return;
}

Expand Down

0 comments on commit 4e071e3

Please sign in to comment.