mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#930 fix dialogs for IE/Safari
- fix: People, comment and checklist dialogs do not appear (IE, Safari)
This commit is contained in:
@@ -19,10 +19,7 @@ import { Component, Input, OnInit, ViewChild, OnChanges, SimpleChanges } from '@
|
||||
import { AlfrescoTranslationService, AlfrescoAuthenticationService } from 'ng2-alfresco-core';
|
||||
import { ActivitiTaskListService } from './../services/activiti-tasklist.service';
|
||||
import { TaskDetailsModel } from '../models/task-details.model';
|
||||
import { Observer } from 'rxjs/Observer';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
declare let componentHandler: any;
|
||||
import { Observer, Observable } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
selector: 'activiti-checklist',
|
||||
@@ -95,6 +92,9 @@ export class ActivitiChecklist implements OnInit, OnChanges {
|
||||
|
||||
public showDialog() {
|
||||
if (this.dialog) {
|
||||
if (!this.dialog.nativeElement.showModal) {
|
||||
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||
}
|
||||
this.dialog.nativeElement.showModal();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user