mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Merge pull request #1075 from Alfresco/dev-mvitale-1072
Fix Demo shell login flags
This commit is contained in:
@@ -88,6 +88,8 @@ export class LoginDemoComponent implements OnInit {
|
|||||||
this.providers = 'ECM';
|
this.providers = 'ECM';
|
||||||
} else if (!checked && this.providers === 'ALL') {
|
} else if (!checked && this.providers === 'ALL') {
|
||||||
this.providers = 'BPM';
|
this.providers = 'BPM';
|
||||||
|
} else if (!checked && this.providers === 'ECM') {
|
||||||
|
this.providers = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
localStorage.setItem('providers', this.providers);
|
localStorage.setItem('providers', this.providers);
|
||||||
@@ -100,6 +102,8 @@ export class LoginDemoComponent implements OnInit {
|
|||||||
this.providers = 'BPM';
|
this.providers = 'BPM';
|
||||||
} else if (!checked && this.providers === 'ALL') {
|
} else if (!checked && this.providers === 'ALL') {
|
||||||
this.providers = 'ECM';
|
this.providers = 'ECM';
|
||||||
|
} else if (!checked && this.providers === 'BPM') {
|
||||||
|
this.providers = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
localStorage.setItem('providers', this.providers);
|
localStorage.setItem('providers', this.providers);
|
||||||
|
@@ -171,7 +171,7 @@ export class AlfrescoLoginComponent implements OnInit {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
private checkRequiredParams(): boolean {
|
private checkRequiredParams(): boolean {
|
||||||
if (this.providers === undefined) {
|
if (this.providers === undefined || this.providers === null || this.providers === '') {
|
||||||
this.errorMsg = 'LOGIN.MESSAGES.LOGIN-ERROR-PROVIDERS';
|
this.errorMsg = 'LOGIN.MESSAGES.LOGIN-ERROR-PROVIDERS';
|
||||||
this.enableError();
|
this.enableError();
|
||||||
let messageProviders: any;
|
let messageProviders: any;
|
||||||
|
Reference in New Issue
Block a user