mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-04-16 22:24:49 +00:00
Merge pull request #1064 from Alfresco/dev-wabson-1053
Enable task details dialog from process details on non-Chrome browsers
This commit is contained in:
@@ -24,6 +24,7 @@ import { DatePipe } from '@angular/common';
|
||||
import { ProcessInstance } from '../models/process-instance';
|
||||
|
||||
declare let componentHandler: any;
|
||||
declare let dialogPolyfill: any;
|
||||
|
||||
@Component({
|
||||
selector: 'activiti-process-instance-tasks',
|
||||
@@ -150,6 +151,9 @@ export class ActivitiProcessInstanceTasks implements OnInit {
|
||||
}
|
||||
|
||||
public showDialog() {
|
||||
if (!this.dialog.nativeElement.showModal) {
|
||||
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||
}
|
||||
if (this.dialog) {
|
||||
this.dialog.nativeElement.showModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user