Skip to content

TagSpaces is an offline, open source, document manager with tagging support

alert dialog in the free version

kristiyandd7eb52b904488
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.js
index f22a38cbf..b713bc616 100644
--- a/data/js/tags.ui.js
+++ b/data/js/tags.ui.js
@@ -164,6 +164,8 @@ define(function(require, exports, module) {
TSCORE.UI.showAddTagDialog(value);
}
});
+ } else if (!TSCORE.PRO && $('#tags').val() === 'geo-tag') {
+ TSCORE.showAlertDialog($.i18n.t("ns.common:needProVersion"), $.i18n.t("ns.common:geoTaggingNotPossible"));
}
});
@@ -390,8 +392,10 @@ define(function(require, exports, module) {
switch (tagData.functionality) {
case 'geoTagging': {
$('#viewContainers').on('drop dragend', function(event) {
- if (TSCORE.selectedTag === 'geo-tag') {
+ if (TSCORE.PRO && TSCORE.selectedTag === 'geo-tag') {
TSCORE.showTagEditDialog();
+ } else if(!TSCORE.PRO && TSCORE.selectedTag === 'geo-tag') {
+ TSCORE.showAlertDialog($.i18n.t("ns.common:needProVersion"), $.i18n.t("ns.common:geoTaggingNotPossible"));
}
});
break;
diff --git a/data/locales/en_US/ns.common.json b/data/locales/en_US/ns.common.json
index d27ccb6f0..c5681c2f5 100644
--- a/data/locales/en_US/ns.common.json
+++ b/data/locales/en_US/ns.common.json
@@ -257,5 +257,7 @@
"createNewButton": "New",
"createNewButtonTitle": "Opens menu for creating new documents",
"createNewDocument": "Create new document",
+ "geoTaggingNotPossible": "Geo Tagging not possible!",
+ "needProVersion": "You need the PRO version in order to use this functionality.",
"-": "-"
}