change demo and add information about auth in the core reame

This commit is contained in:
Eugenio Romano
2016-08-16 15:14:07 +01:00
parent 1e8440c0a0
commit 8698395bd4
7 changed files with 76 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ export class AppComponent {
public status: string = '';
public providers: string [] = ['ECM'];
public providers: string = 'ECM';
constructor(public auth: AlfrescoAuthenticationService,
private alfrescoSettingsService: AlfrescoSettingsService) {
@@ -84,18 +84,22 @@ export class AppComponent {
}
toggleECM(checked) {
if (checked) {
this.providers[0] = 'ECM';
if (checked && this.providers === 'BPM') {
this.providers = 'ALL';
} else if (checked) {
this.providers = 'ECM';
} else {
this.providers[0] = '';
this.providers = undefined;
}
}
toggleBPM(checked) {
if (checked) {
this.providers[1] = 'BPM';
if (checked && this.providers === 'ECM') {
this.providers = 'ALL';
} else if (checked) {
this.providers = 'BPM';
} else {
this.providers[1] = '';
this.providers = undefined;
}
}
}