From 1501e2c2cc3e028226a17b759370b3db635fd5f5 Mon Sep 17 00:00:00 2001 From: mauriziovitale84 Date: Fri, 18 Nov 2016 13:08:44 +0000 Subject: [PATCH] Fix demo after refactoring --- .../ng2-activiti-processlist/demo/src/main.ts | 113 +++++++++--------- .../ng2-activiti-tasklist/demo/src/main.ts | 8 +- 2 files changed, 61 insertions(+), 60 deletions(-) diff --git a/ng2-components/ng2-activiti-processlist/demo/src/main.ts b/ng2-components/ng2-activiti-processlist/demo/src/main.ts index 252ab72fcf..a6076bbce2 100644 --- a/ng2-components/ng2-activiti-processlist/demo/src/main.ts +++ b/ng2-components/ng2-activiti-processlist/demo/src/main.ts @@ -1,17 +1,17 @@ -/*! - * @license - * Copyright 2016 Alfresco Software, Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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 specific language governing permissions and +/*! + * @license + * Copyright 2016 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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 specific language governing permissions and * limitations under the License. */ @@ -63,34 +63,35 @@ import { ObjectDataTableAdapter, DataSorting } from 'ng2-alfresco-datatable';
-
-
-
- Process Filters - - -
-
- Process List - -
-
- Process Details - -
+
+
+ Process Filters + + +
+
+ Process List + +
+
+ Process Details +
@@ -171,10 +172,10 @@ class MyDemoApp implements OnInit { this.authenticated = true; }, error => { - console.log(error); - this.authenticated = false; - }); - } + console.log(error); + this.authenticated = false; + }); + } onAppClick(app: AppDefinitionRepresentationModel) { this.appId = app.id; @@ -214,19 +215,19 @@ class MyDemoApp implements OnInit { this.tabHeader.nativeElement.children[`${destination}-header`].classList.add('is-active'); } -} - -@NgModule({ - imports: [ - BrowserModule, - CoreModule.forRoot(), +} + +@NgModule({ + imports: [ + BrowserModule, + CoreModule.forRoot(), ActivitiProcessListModule, ActivitiTaskListModule.forRoot() - ], + ], declarations: [MyDemoApp], bootstrap: [MyDemoApp] -}) +}) export class AppModule { } - -platformBrowserDynamic().bootstrapModule(AppModule); + +platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/ng2-components/ng2-activiti-tasklist/demo/src/main.ts b/ng2-components/ng2-activiti-tasklist/demo/src/main.ts index c734a35d62..3b7e5d0163 100644 --- a/ng2-components/ng2-activiti-tasklist/demo/src/main.ts +++ b/ng2-components/ng2-activiti-tasklist/demo/src/main.ts @@ -80,8 +80,8 @@ import { ObjectDataTableAdapter, DataSorting } from 'ng2-alfresco-datatable';
Task List -