that shouldn't be removed

pull/4965/head
Dmitry Salakhov 4 years ago
parent fc9511dc97
commit 8bf662c13a

@ -64,6 +64,19 @@ angular.module('portainer.app').controller('InitAdminController', [
});
};
function createAdministratorFlow() {
UserService.administratorExists()
.then(function success(exists) {
if (exists) {
$state.go('portainer.home');
}
})
.catch(function error(err) {
Notifications.error('Failure', err, 'Unable to verify administrator account existence');
});
}
createAdministratorFlow();
async function waitPortainerRestart() {
for (let i = 0; i < 10; i++) {
await new Promise((resolve) => setTimeout(resolve, 5 * 1000));

Loading…
Cancel
Save