Clear deleted stack/card list after switch (fixes #683)

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-11-09 16:42:00 +01:00
parent 5371a02653
commit b60abba6e4
2 changed files with 4 additions and 3 deletions

View File

@@ -64,6 +64,7 @@ app.factory('ApiService', function ($http, $q) {
ApiService.prototype.fetchDeleted = function (scopeId) {
var deferred = $q.defer();
var self = this;
self.deleted = {};
$http.get(this.generateUrl(scopeId + '/' + this.endpoint + '/deleted')).then(function (response) {
var objects = response.data;
objects.forEach(function (obj) {