mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Improve provider empty cases
This commit is contained in:
@@ -92,9 +92,7 @@ export class LoginDemoComponent implements OnInit {
|
|||||||
this.providers = '';
|
this.providers = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.providers) {
|
localStorage.setItem('providers', this.providers);
|
||||||
localStorage.setItem('providers', this.providers);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleBPM(checked) {
|
toggleBPM(checked) {
|
||||||
@@ -108,9 +106,7 @@ export class LoginDemoComponent implements OnInit {
|
|||||||
this.providers = '';
|
this.providers = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.providers) {
|
localStorage.setItem('providers', this.providers);
|
||||||
localStorage.setItem('providers', this.providers);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleCSRF() {
|
toggleCSRF() {
|
||||||
|
@@ -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