From b121f975fabde5c1b0576103605d6504c0ad7b2f Mon Sep 17 00:00:00 2001 From: Chaim Lev Ari Date: Wed, 16 Jan 2019 17:38:07 +0200 Subject: [PATCH] refactor(settings): remove duplicate settings --- app/portainer/models/settings.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;