diff --git a/app/portainer/models/settings.js b/app/portainer/models/settings.js index 6da0e8883..930ae4da5 100644 --- a/app/portainer/models/settings.js +++ b/app/portainer/models/settings.js @@ -3,11 +3,7 @@ function SettingsViewModel(data) { this.BlackListedLabels = data.BlackListedLabels; this.AuthenticationMethod = data.AuthenticationMethod; this.LDAPSettings = data.LDAPSettings; - this.OAuthSettings = data.OAuthSettings; - this.ClientID = data.ClientID; - this.RedirectURI = data.RedirectURI; - this.Scopes = data.Scopes; - this.AuthorizationURI = data.AuthorizationURI; + this.OAuthSettings = new OAuthSettingsViewModel(data.OAuthSettings); this.AllowBindMountsForRegularUsers = data.AllowBindMountsForRegularUsers; this.AllowPrivilegedModeForRegularUsers = data.AllowPrivilegedModeForRegularUsers; this.SnapshotInterval = data.SnapshotInterval;