WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-14e6ba-362.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 92624 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: Dynamic Modal API imports
Hi,
I was trying out the new dynamic modal implementation from the last Angular mdb update. I would like to know what are the individual API imports needed for this to work. From my testing I needed to add the MDBModalRef as a provider in the parent module so I didnt get the "No provider for ..." error. I'm not sure this is correct way tho.
Also I was trying to pass some data to the ModalComponent. The data I was passing was an object. In the docs it says we should pass the data like modalRef.content.example = {...} after calling the show method to assign the ref.
The only way I got it to work was having the variables on the target modal component initialized ( example: object = undefined; ) and using the elvis operator on the html.
Otherwise when I tried to refer to the modal attributes with the "modalRef.content.example=...." they were not there and never got initialized.
Another issue I faced was with the style overflow y auto. since the div where we normally place that style is now being auto generated I had to create a class with that style to include it in the containerClass attribute. Would be nice if it was just another atribute or even better if it could be set automaticly if the modal height was bigger than the viewport height.
Cheers.
Joao
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: PC
- Browser: Chrome / Firefox / Edge
- OS: Windows 10 PRO x64
- Provided sample code: No
- Provided link: No