Skip to content

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

upgrading tag groups with ratings

Ilian80c06158a5d9
diff --git a/data/js/settings.api.js b/data/js/settings.api.js
index da4d5af12..3333c3110 100644
--- a/data/js/settings.api.js
+++ b/data/js/settings.api.js
@@ -229,7 +229,51 @@
addFileType({ "type": "ods", "viewer": "editorODF", "editor": "false" });
addFileType({ "type": "odp", "viewer": "editorODF", "editor": "false" });
addFileType({ "type": "odg", "viewer": "editorODF", "editor": "false" });
- }
+ }
+
+ if(oldBuildNumber <= 201405120000) {
+ addTagGroup(
+ {
+ "title": "Ratings", "key": "REV", "expanded": true, "children": [
+ {
+ "type": "plain",
+ "title": "1star",
+ "color": "#FFCC24",
+ "textcolor": "#ffffff",
+ "keyBinding": "t 1"
+ },
+ {
+ "type": "plain",
+ "title": "2star",
+ "color": "#FFCC24",
+ "textcolor": "#ffffff",
+ "keyBinding": "t 2"
+ },
+ {
+ "type": "plain",
+ "title": "3star",
+ "color": "#FFCC24",
+ "textcolor": "#ffffff",
+ "keyBinding": "t 3"
+ },
+ {
+ "type": "plain",
+ "title": "4star",
+ "color": "#FFCC24",
+ "textcolor": "#ffffff",
+ "keyBinding": "t 4"
+ },
+ {
+ "type": "plain",
+ "title": "5star",
+ "color": "#FFCC24",
+ "textcolor": "#ffffff",
+ "keyBinding": "t 5"
+ }
+ ]
+ }
+ );
+ }
saveSettings();
}