Note tag relationships
This commit is contained in:
@@ -132,7 +132,8 @@ angular.module('app')
|
||||
}
|
||||
|
||||
for(var tagToRemove of toRemove) {
|
||||
note.removeItemAsRelationship(tagToRemove);
|
||||
tagToRemove.removeItemAsRelationship(note);
|
||||
tagToRemove.setDirty(true);
|
||||
}
|
||||
|
||||
var tags = [];
|
||||
@@ -144,10 +145,10 @@ angular.module('app')
|
||||
}
|
||||
|
||||
for(var tag of tags) {
|
||||
note.addItemAsRelationship(tag);
|
||||
tag.addItemAsRelationship(note);
|
||||
tag.setDirty(true);
|
||||
}
|
||||
|
||||
note.setDirty(true);
|
||||
syncManager.sync();
|
||||
}
|
||||
|
||||
@@ -206,8 +207,8 @@ angular.module('app')
|
||||
modelManager.addItem(note);
|
||||
|
||||
if(!$scope.selectedTag.all && !$scope.selectedTag.archiveTag) {
|
||||
note.addItemAsRelationship($scope.selectedTag);
|
||||
note.setDirty(true);
|
||||
$scope.selectedTag.addItemAsRelationship(note);
|
||||
$scope.selectedTag.setDirty(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,10 +87,13 @@
|
||||
height: inherit;
|
||||
|
||||
// Autohide scrollbar on Windows.
|
||||
// Unfortunately must affect every platform since no way to hide just for Windows.
|
||||
overflow-y: hidden;
|
||||
&:hover {
|
||||
overflow-y: scroll;
|
||||
@at-root {
|
||||
.windows-web &, .windows-desktop & {
|
||||
overflow-y: hidden;
|
||||
&:hover {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user