Moved the providers inside AlfrescoSetting

This commit is contained in:
mauriziovitale84
2016-07-12 15:46:54 +01:00
parent 9cf7322acf
commit 66affb869f
4 changed files with 109 additions and 29 deletions

View File

@@ -46,17 +46,26 @@ export class LoginDemoComponent {
toggleECM(checked) {
if (checked) {
this.providers[0] = 'ECM';
this.providers.push('ECM');
} else {
this.providers[0] = '';
this.removeElement('ECM');
}
}
toggleBPM(checked) {
if (checked) {
this.providers[1] = 'BPM';
this.providers.push('BPM');
} else {
this.providers[1] = '';
this.removeElement('BPM');
}
}
removeElement(el: string) {
for (let i = 0; i < this.providers.length; i++) {
if (this.providers[i] === el) {
this.providers.splice(i, 1);
return false;
}
}
}