Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

only allow to save an element after all fields have loaded #610

Open medarob opened 11 months ago

medarob commented 11 months ago

I just ran into a problem where mask deleted all fields of an element.

If I want to edit an element it sometimes takes a while until all fields are shown in the BE mask configurator. (1-2 sec) If I click on the save button during that short time period, when no fields are shown, mask saves the element with no fields.

In my opinion the save button should be active only when all fields were loaded and shown in the configurator.

nhovratov commented 11 months ago

I hope you had your json in git :scream:

nhovratov commented 11 months ago

Actually I have no idea how to do this. Right now I just wait for all requests to be done. That is when the splashscreen dissappears. In local development the components are normally rendered almost instantaneously. So in addition I would need to wait until all sub-components are rendered. This isn't so simple, as the number of components is variable. Maybe there is some VueJs Guru outthere who could help?

medarob commented 11 months ago

I hope you had your json in git 😱

Yes, the code is in Git so I could do a revert.

I only noticed this because I was saving each element and noticed that on some elements more (missing/additional?) code was added to the mask.json. I haven't changed anything in the elements. So I just opened each element and clicked on the save button and at the last element I was to fast, no fields were loaded and then all the fields were gone after saving.