fix(core/oauth): select no-team by default (#4227)

pull/4230/head
Chaim Lev-Ari 2020-08-18 11:59:52 +03:00 committed by GitHub
parent 297eea5da6
commit b3b706d88d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -15,5 +15,9 @@ angular.module('portainer.oauth').controller('OAuthSettingsController', function
if (ctrl.settings.AuthorizationURI !== '') {
ctrl.state.provider.authUrl = ctrl.settings.AuthorizationURI;
}
if (ctrl.settings.DefaultTeamID === 0) {
ctrl.settings.DefaultTeamID = null;
}
}
});