mirror of https://github.com/nextcloud/contacts
Update uid if no contact in group.
This commit is contained in:
parent
411155bc54
commit
5fd1026ab5
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue