mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[ADF-1748] remove MDL dependency and fix style issues (#2486)
* remove dialogPolyfill references * remove MDL dependencies * style fixes * exclude the test (needs dialog support)
This commit is contained in:
committed by
Eugenio Romano
parent
073003ba9a
commit
0cc578ba0e
@@ -25,8 +25,6 @@ import { FormFieldModel } from '../core/form-field.model';
|
||||
import { FormService } from './../../../services/form.service';
|
||||
import { baseHost , WidgetComponent } from './../widget.component';
|
||||
|
||||
declare let dialogPolyfill: any;
|
||||
|
||||
@Component({
|
||||
selector: 'attach-widget',
|
||||
templateUrl: './attach.widget.html',
|
||||
@@ -130,11 +128,7 @@ export class AttachWidgetComponent extends WidgetComponent implements OnInit {
|
||||
this.getExternalContentNodes();
|
||||
|
||||
if (this.dialog) {
|
||||
if (!this.dialog.nativeElement.showModal) {
|
||||
dialogPolyfill.registerDialog(this.dialog.nativeElement);
|
||||
}
|
||||
|
||||
this.dialog.nativeElement.showModal();
|
||||
// todo: show dialog
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user