Fix login flags

This commit is contained in:
mauriziovitale84 2016-11-11 15:09:06 +00:00
parent ac077b9b96
commit 93ec758911

View File

@ -88,10 +88,14 @@ export class LoginDemoComponent implements OnInit {
this.providers = 'ECM';
} else if (!checked && this.providers === 'ALL') {
this.providers = 'BPM';
} else if (!checked && this.providers === 'ECM') {
this.providers = '';
}
if (this.providers) {
localStorage.setItem('providers', this.providers);
}
}
toggleBPM(checked) {
if (checked && this.providers === 'ECM') {
@ -100,10 +104,14 @@ export class LoginDemoComponent implements OnInit {
this.providers = 'BPM';
} else if (!checked && this.providers === 'ALL') {
this.providers = 'ECM';
} else if (!checked && this.providers === 'BPM') {
this.providers = '';
}
if (this.providers) {
localStorage.setItem('providers', this.providers);
}
}
toggleCSRF() {
this.disableCsrf = !this.disableCsrf;