mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Moved the providers inside AlfrescoSetting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user