Components system

This commit is contained in:
Mo Bitar
2017-06-15 11:44:20 -05:00
parent b759b2b770
commit de21d110d9
19 changed files with 1071 additions and 39 deletions

View File

@@ -37,6 +37,7 @@ angular.module('app.frontend')
themeManager.activateInitialTheme();
$scope.$apply();
syncManager.sync(null);
// refresh every 30s
setInterval(function () {
@@ -56,6 +57,7 @@ angular.module('app.frontend')
*/
$scope.updateTagsForNote = function(note, stringTags) {
console.log("Updating tags", stringTags);
var toRemove = [];
for(var tag of note.tags) {
if(stringTags.indexOf(tag.title) === -1) {