Only digest on card update not for every interval

and add various track by statements

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-02-04 14:49:28 +01:00
parent d5bec8d19e
commit 8e51fdbb88
4 changed files with 11 additions and 9 deletions

View File

@@ -78,9 +78,11 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
var header = $('.section-header.card-description');
header.find('.save-indicator.unsaved').hide();
header.find('.save-indicator.saved').fadeIn(250).fadeOut(1000);
StackService.updateCard($scope.status.edit);
BoardService.$scope.$digest();
});
}
}, 500);
}, 500, 0, false);
// handle rename to update information on the board as well
$scope.cardRename = function (card) {