Skip to content

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

adding application full name to the window title

Ilian Sapundshievb4f8ce340ef9
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.js
index 09d0a9d2c..0aa0aca51 100644
--- a/data/js/directories.ui.js
+++ b/data/js/directories.ui.js
@@ -126,7 +126,7 @@ define(function(require, exports, module) {
}
if (TSCORE.currentLocationObject !== undefined) {
- document.title = TSCORE.currentLocationObject.name + ' | ' + TSCORE.Config.DefaultSettings.appName;
+ document.title = TSCORE.currentLocationObject.name + ' | ' + TSCORE.Config.getAppFullName();
$('#locationName').removeAttr("data-i18n");
$('#locationName').text(TSCORE.currentLocationObject.name).attr('title', path);
// Handle open default perspective for a location
diff --git a/data/js/settings.api.js b/data/js/settings.api.js
index 29d1111e3..cd1c42c7c 100644
--- a/data/js/settings.api.js
+++ b/data/js/settings.api.js
@@ -266,6 +266,14 @@ define(function(require, exports, module) {
//////////////////// getter and setter methods ///////////////////
+ function getAppFullName() {
+ var appFullName = "TagSpaces"; // TODO extend settings with app full name
+ if (TSCORE.PRO) {
+ appFullName = appFullName + " Pro";
+ }
+ return appFullName;
+ }
+
function getPerspectiveExtensions() {
var perspectives = [];
getExtensions().forEach(function(extension) {
@@ -1442,6 +1450,7 @@ define(function(require, exports, module) {
// Public API definition
exports.upgradeSettings = upgradeSettings;
+ exports.getAppFullName = getAppFullName;
exports.getActivatedPerspectives = getActivatedPerspectives;
exports.setActivatedPerspectives = setActivatedPerspectives;
exports.getExtensions = getExtensions;