From 896149acd8aa97b2f4a5e0893943f92427245e83 Mon Sep 17 00:00:00 2001 From: Deepak Paul Date: Wed, 26 Jul 2017 14:18:49 +0530 Subject: [PATCH] [ADF-1149] 'Remove' involved people of a task button is displayed behind the dialog (#2130) * Removed mdl dialogs for comments and people * Removed list-column CSS class from activiti-demo component to show tasks/process list and details in the same row on low resolution screens --- .../activiti/activiti-demo.component.css | 4 --- .../activiti/activiti-demo.component.html | 24 ++++++++----- .../process-instance-details.component.html | 13 +++---- .../process-instance-details.component.ts | 16 --------- .../src/components/task-details.component.css | 18 ++-------- .../components/task-details.component.html | 35 ++++++------------- .../src/components/task-details.component.ts | 34 +----------------- 7 files changed, 34 insertions(+), 110 deletions(-) diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.css b/demo-shell-ng2/app/components/activiti/activiti-demo.component.css index 405cbb56f3..686bd4fadb 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.css +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.css @@ -12,10 +12,6 @@ padding: 10px 10px 10px 10px; } -.list-column { - width: 320px; -} - .mdl-layout__header { z-index: 1; } diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html index 3b99e9ce5d..b58ef3af86 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html @@ -38,7 +38,7 @@ -
+

- - + + + + + +
-
+

- - + + + + + +
diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html b/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html index 4c883a0f13..2dfb3e3d56 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html +++ b/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.html @@ -5,9 +5,6 @@ [processInstance]="processInstanceDetails" (showProcessDiagram)="onShowProcessDiagram($event)"> -
- -
@@ -22,14 +19,12 @@
- -
+ + -

- -
-
+ +
diff --git a/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.ts b/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.ts index 57fc0ca468..e51055854b 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/process-instance-details.component.ts @@ -43,9 +43,6 @@ export class ProcessInstanceDetailsComponent implements OnChanges { @ViewChild(ProcessInstanceTasksComponent) tasksList: ProcessInstanceTasksComponent; - @ViewChild('dialogComments') - commentsDialog: any; - @Input() showTitle: boolean = true; @@ -109,19 +106,6 @@ export class ProcessInstanceDetailsComponent implements OnChanges { } } - public showCommentsDialog(): void { - if (!this.commentsDialog.nativeElement.showModal) { - dialogPolyfill.registerDialog(this.commentsDialog.nativeElement); - } - this.commentsDialog.nativeElement.showModal(); - } - - public closeCommentsDialog(): void { - if (this.commentsDialog) { - this.commentsDialog.nativeElement.close(); - } - } - isRunning(): boolean { return this.processInstanceDetails && !this.processInstanceDetails.ended; } diff --git a/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.css b/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.css index 196e53c99f..13d49df36d 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.css +++ b/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.css @@ -25,20 +25,6 @@ text-transform: uppercase; } -.people-dialog { - position: fixed; - top: 50%; - transform: translate(0, -50%); - width: 40%; -} - -.comments-dialog { - position: fixed; - top: 50%; - transform: translate(0, -50%); - width: 40%; -} - -adf-comments >>> adf-comment-list { - max-height: 400px; +adf-people >>> .assignment-top-container{ + background-color: #fff; } \ No newline at end of file diff --git a/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.html b/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.html index 366659d3eb..baeb0c9968 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.html +++ b/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.html @@ -19,12 +19,6 @@ (claim)="onClaimTask($event)">
-
- -
-
- -
{{'TASK_DETAILS.ERROR.CLOSE'|translate}}
- -
- - -

- -
-
- -
+

+ + + + -

- -
-
+ +
diff --git a/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.ts b/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.ts index b73e1858e5..a6b22b3622 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/task-details.component.ts @@ -27,7 +27,7 @@ import { Component, ViewChild } from '@angular/core'; import { ContentLinkModel, FormModel, FormOutcomeEvent, FormService } from 'ng2-activiti-form'; -import { AlfrescoAuthenticationService, AlfrescoTranslationService, CardViewUpdateService, LogService, UpdateNotification, ClickNotification } from 'ng2-alfresco-core'; +import { AlfrescoAuthenticationService, AlfrescoTranslationService, CardViewUpdateService, ClickNotification, LogService, UpdateNotification } from 'ng2-alfresco-core'; import { TaskQueryRequestRepresentationModel } from '../models/filter.model'; import { TaskDetailsModel } from '../models/task-details.model'; import { User } from '../models/user.model'; @@ -55,12 +55,6 @@ export class TaskDetailsComponent implements OnInit, OnChanges { @ViewChild('errorDialog') errorDialog: DebugElement; - @ViewChild('dialogPeople') - peopleDialog: any; - - @ViewChild('dialogComments') - commentsDialog: any; - @Input() debugMode: boolean = false; @@ -323,32 +317,6 @@ export class TaskDetailsComponent implements OnInit, OnChanges { this.errorDialog.nativeElement.close(); } - public showPeopleDialog(): void { - if (!this.peopleDialog.nativeElement.showModal) { - dialogPolyfill.registerDialog(this.peopleDialog.nativeElement); - } - this.peopleDialog.nativeElement.showModal(); - } - - public closePeopleDialog(): void { - if (this.peopleDialog) { - this.peopleDialog.nativeElement.close(); - } - } - - public showCommentsDialog(): void { - if (!this.commentsDialog.nativeElement.showModal) { - dialogPolyfill.registerDialog(this.commentsDialog.nativeElement); - } - this.commentsDialog.nativeElement.showModal(); - } - - public closeCommentsDialog(): void { - if (this.commentsDialog) { - this.commentsDialog.nativeElement.close(); - } - } - onClaimTask(taskId: string): void { this.loadDetails(taskId); }