Fix showing completed tasks in newly created lists, fixes #241

This commit is contained in:
Raimund Schlüßler 2015-08-29 21:40:24 +02:00
parent 81f31d39c6
commit ea35a746eb
3 changed files with 6 additions and 4 deletions

View file

@ -74,6 +74,7 @@ CollectionsModel, ListsBusinessLayer, $location, SearchBusinessLayer) ->
list = {
tmpID: 'newList' + Date.now()
displayname: _$scope.status.newListName
notLoaded: 0
}
_$listsbusinesslayer.addList list
, (data) =>
@ -170,4 +171,4 @@ CollectionsModel, ListsBusinessLayer, $location, SearchBusinessLayer) ->
return new ListController($scope, $window, $routeParams,
ListsModel, TasksBusinessLayer, CollectionsModel,
ListsBusinessLayer, $location, SearchBusinessLayer)
]
]

View file

@ -126,4 +126,4 @@ angular.module('Tasks').factory 'ListsModel',
return @getById(listID).displayname
return new ListsModel(TasksModel)
]
]

View file

@ -1,7 +1,7 @@
(function(angular, $, moment, undefined){
/**
* ownCloud Task App - v0.6.0
* ownCloud Task App - v0.7.1
*
* Copyright (c) 2015 - Raimund Schlüßler <raimund.schluessler@googlemail.com>
*
@ -860,7 +860,8 @@
_$scope.isAddingList = true;
list = {
tmpID: 'newList' + Date.now(),
displayname: _$scope.status.newListName
displayname: _$scope.status.newListName,
notLoaded: 0
};
_$listsbusinesslayer.addList(list, function(data) {
_$listsmodel.add(data.list);