mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user