mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
change demo and add information about auth in the core reame
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the speific language governing permissions and
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user