[ADF-3191] Not able to login only to BPM or ECM (#3478)

* disable random test

* host setting component reset JS-API

* reload api after user prefrence change

* remove replicate reset

* missing semicolon

* deprecate provider property

* remove trailing space

* check new value before to set
This commit is contained in:
Eugenio Romano
2018-06-13 16:05:35 +01:00
committed by GitHub
parent d41e3d5b9c
commit afdedf02d1
12 changed files with 68 additions and 139 deletions

View File

@@ -28,7 +28,12 @@ export enum UserPreferenceValues {
PaginationSize = 'PAGINATION_SIZE',
DisableCSRF = 'DISABLE_CSRF',
Locale = 'LOCALE',
SupportedPageSizes = 'supportedPageSizes'
SupportedPageSizes = 'supportedPageSizes',
oauthConfig = 'oauthConfig',
ecmHost = 'ecmHost',
bpmHost = 'bpmHost',
providers = 'providers',
authType = 'authType'
}
@Injectable()
@@ -199,7 +204,9 @@ export class UserPreferencesService {
}
set providers(providers: string) {
this.storage.setItem('providers', providers);
if (providers !== this.providers) {
this.storage.setItem('providers', providers);
}
}
get bpmHost(): string {
@@ -211,7 +218,9 @@ export class UserPreferencesService {
}
set bpmHost(bpmHost: string) {
this.storage.setItem('bpmHost', bpmHost);
if (bpmHost !== this.bpmHost) {
this.storage.setItem('bpmHost', bpmHost);
}
}
get ecmHost(): string {
@@ -223,7 +232,9 @@ export class UserPreferencesService {
}
set ecmHost(ecmHost: string) {
this.storage.setItem('ecmHost', ecmHost);
if (ecmHost !== this.ecmHost) {
this.storage.setItem('ecmHost', ecmHost);
}
}
get oauthConfig(): OauthConfigModel {
@@ -235,7 +246,9 @@ export class UserPreferencesService {
}
set oauthConfig(oauthConfig: OauthConfigModel) {
this.storage.setItem('oauthConfig', JSON.stringify(oauthConfig));
if (JSON.stringify(oauthConfig) !== JSON.stringify(this.oauthConfig)) {
this.storage.setItem('oauthConfig', JSON.stringify(oauthConfig));
}
}
get authType(): string {
@@ -247,7 +260,9 @@ export class UserPreferencesService {
}
set authType(authType: string) {
this.storage.setItem('authType', authType);
if (authType !== this.authType) {
this.storage.setItem('authType', authType);
}
}
}