Make needlogin only become true after loading finishes
This commit is contained in:
1 parent
9441ea572d
commit
fd6c7cd48f
1 file changed
+1
-1
@@ -7,7 +7,7 @@ $(function() {
|
||||
|
||||
self.loading = ko.observable(true);
|
||||
self.needlogin = ko.computed(function() {
|
||||
return !self.loginState.hasPermissionKo(self.access.permissions.STATUS)();
|
||||
return !self.loading() && !self.loginState.hasPermissionKo(self.access.permissions.STATUS)();
|
||||
});
|
||||
self.visible = ko.pureComputed(function() {
|
||||
return !self.loading() && !self.needlogin();
|
||||
|
||||
Reference in new issue
Block a user