diff --git a/ng2-components/ng2-alfresco-upload/demo/src/main.ts b/ng2-components/ng2-alfresco-upload/demo/src/main.ts
index aa95d8c9c7..f53a6d8b20 100644
--- a/ng2-components/ng2-alfresco-upload/demo/src/main.ts
+++ b/ng2-components/ng2-alfresco-upload/demo/src/main.ts
@@ -36,29 +36,66 @@ import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload';
Authentication failed to ip {{ host }} with user: admin, admin, you can still try to add a valid ticket to perform
operations.
-
-
-
-
-
-
-
-
-
-
-
-
+ Upload
+
+
+ Extension accepted
+
+
+
+
+
+
+
+
+ Multiple File Upload
+
+
+
+
+
+
+
+ Folder Upload
+
+
+
+
+
+
+ Filter extension
+
+
+
+
+
+
+ Versioning
+
+
@@ -78,6 +115,11 @@ export class MyDemoApp implements OnInit {
public ecmHost: string = 'http://devproducts-platform.alfresco.me';
+ multipleFileUpload: boolean = false;
+ folderUpload: boolean = false;
+ acceptedFilesTypeShow: boolean = false;
+ versioning: boolean = false;
+
ticket: string;
constructor(private authService: AlfrescoAuthenticationService, private settingsService: AlfrescoSettingsService) {
@@ -118,6 +160,28 @@ export class MyDemoApp implements OnInit {
this.authenticated = false;
});
}
+
+
+ toggleMultipleFileUpload() {
+ this.multipleFileUpload = !this.multipleFileUpload;
+ return this.multipleFileUpload;
+ }
+
+ toggleFolder() {
+ this.multipleFileUpload = false;
+ this.folderUpload = !this.folderUpload;
+ return this.folderUpload;
+ }
+
+ toggleAcceptedFilesType() {
+ this.acceptedFilesTypeShow = !this.acceptedFilesTypeShow;
+ return this.acceptedFilesTypeShow;
+ }
+
+ toggleVersioning() {
+ this.versioning = !this.versioning;
+ return this.versioning;
+ }
}
bootstrap(MyDemoApp, [
diff --git a/ng2-components/ng2-alfresco-upload/demo/tslint.json b/ng2-components/ng2-alfresco-upload/demo/tslint.json
index 8c48e76469..e550ac11d4 100644
--- a/ng2-components/ng2-alfresco-upload/demo/tslint.json
+++ b/ng2-components/ng2-alfresco-upload/demo/tslint.json
@@ -26,7 +26,7 @@
"label-undefined": true,
"max-line-length": [
true,
- 140
+ 180
],
"member-ordering": [
true,