Fixes tag loading issue, 3.0.11

This commit is contained in:
Mo Bitar
2019-06-05 15:04:04 -05:00
parent c0ce486ee3
commit 4ec16b15e7
4 changed files with 5 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
angular.module('app') angular.module('app')
.constant('appVersion', '3.0.10') .constant('appVersion', '3.0.11')
; ;

View File

@@ -6,8 +6,6 @@ angular.module('app')
addNew: "&", addNew: "&",
selectionMade: "&", selectionMade: "&",
save: "&", save: "&",
tags: "=",
updateNoteTag: "&",
removeTag: "&" removeTag: "&"
}, },
templateUrl: 'tags.html', templateUrl: 'tags.html',
@@ -30,15 +28,11 @@ angular.module('app')
|| syncEvent == "local-data-incremental-load") { || syncEvent == "local-data-incremental-load") {
this.tags = modelManager.tags; this.tags = modelManager.tags;
this.smartTags = modelManager.getSmartTags(); this.smartTags = modelManager.getSmartTags();
if(this.noteCountsNeedReload) {
this.noteCountsNeedReload = false;
this.reloadNoteCounts();
}
} }
}); });
modelManager.addItemSyncObserver("tags-list", "*", (allItems, validItems, deletedItems, source, sourceKey) => { modelManager.addItemSyncObserver("tags-list", "*", (allItems, validItems, deletedItems, source, sourceKey) => {
this.noteCountsNeedReload = true; this.reloadNoteCounts();
}); });
this.reloadNoteCounts = function() { this.reloadNoteCounts = function() {

View File

@@ -5,8 +5,8 @@ class ComponentView {
this.templateUrl = "directives/component-view.html"; this.templateUrl = "directives/component-view.html";
this.scope = { this.scope = {
component: "=", component: "=",
onLoad: "=", onLoad: "=?",
manualDealloc: "=" manualDealloc: "=?"
}; };
this.desktopManager = desktopManager; this.desktopManager = desktopManager;

View File

@@ -1,6 +1,6 @@
{ {
"name": "standard-notes-web", "name": "standard-notes-web",
"version": "3.0.10", "version": "3.0.11",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"repository": { "repository": {
"type": "git", "type": "git",