Remove Client.isServerFirstTime()

This commit is contained in:
Johannes Zellner
2015-12-29 11:00:32 +01:00
parent bb5dfa13ee
commit 3fb5c682f8
3 changed files with 25 additions and 25 deletions

View File

@@ -67,9 +67,9 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
});
};
Client.isServerFirstTime(function (error, isFirstTime) {
Client.getStatus(function (error, status) {
if (error) return $scope.error(error);
if (isFirstTime) return $scope.setup();
if (!status.activated) return $scope.setup();
Client.refreshConfig(function (error) {
if (error) return $scope.error(error);