Select all tag after deleting tag

This commit is contained in:
Mo Bitar
2018-07-21 08:43:43 -05:00
parent 4503c51c32
commit cff5fbf72f
2 changed files with 1 additions and 1 deletions

View File

@@ -206,7 +206,6 @@ angular.module('app')
$scope.removeTag = function(tag) {
if(confirm("Are you sure you want to delete this tag? Note: deleting a tag will not delete its notes.")) {
modelManager.setItemToBeDeleted(tag);
// if no more notes, delete tag
syncManager.sync().then(() => {
// force scope tags to update on sub directives
$scope.safeApply();

View File

@@ -158,6 +158,7 @@ angular.module('app')
this.selectedDeleteTag = function(tag) {
this.removeTag()(tag);
this.selectTag(this.allTag);
}
this.noteCount = function(tag) {