Select all tag after deleting tag
This commit is contained in:
@@ -206,7 +206,6 @@ angular.module('app')
|
|||||||
$scope.removeTag = function(tag) {
|
$scope.removeTag = function(tag) {
|
||||||
if(confirm("Are you sure you want to delete this tag? Note: deleting a tag will not delete its notes.")) {
|
if(confirm("Are you sure you want to delete this tag? Note: deleting a tag will not delete its notes.")) {
|
||||||
modelManager.setItemToBeDeleted(tag);
|
modelManager.setItemToBeDeleted(tag);
|
||||||
// if no more notes, delete tag
|
|
||||||
syncManager.sync().then(() => {
|
syncManager.sync().then(() => {
|
||||||
// force scope tags to update on sub directives
|
// force scope tags to update on sub directives
|
||||||
$scope.safeApply();
|
$scope.safeApply();
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ angular.module('app')
|
|||||||
|
|
||||||
this.selectedDeleteTag = function(tag) {
|
this.selectedDeleteTag = function(tag) {
|
||||||
this.removeTag()(tag);
|
this.removeTag()(tag);
|
||||||
|
this.selectTag(this.allTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.noteCount = function(tag) {
|
this.noteCount = function(tag) {
|
||||||
|
|||||||
Reference in New Issue
Block a user