Update uid if no contact in group.

This commit is contained in:
Alexander Weidinger 2016-03-19 12:20:13 +01:00
parent 411155bc54
commit 5fd1026ab5
1 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,11 @@ app.controller('contactlistCtrl', function($scope, $filter, $route, $routeParams
gid: $routeParams.gid,
uid: ctrl.contactList[0].uid()
});
} else {
$route.updateParams({
gid: $routeParams.gid,
uid: undefined
});
}
unbindWatch(); // unbind as we only want one update
});