lukaveck1
FIlament Bulk Delete causes this.$refs.modalContainer is undefined
I'm not sure what happened, first this thing was on GitHub (works perfectly), then my manager moved it to GitLab and added some docker stuff and cert, now I've done cloned project from GitLab, composer install, npm install,.. and while everything looks to work the same, this is the first bug that I've found.
13 replies
Showing another modal for loading screen while submitting modal form.
I'm not sure I understand how to wrap modal with extra attributes and action button.
From this code I understand we are setting $fixed to true, if it doesn't have value (which will be used later to set class to 'absolute' so we are showing the modal), then in x-data we are basically saying change loading to true, if we click the action button.
Now I'm not sure how to bind things to Modal and Action button and am guessing what I'm doing or have to do due to lack of experience, such as trying
Action::make('generate')
->extraAttributes(
['loading' => true]
)..
which of course doesn't work, I'm unsure what and how I'm supposed to do this.
30 replies
Showing another modal for loading screen while submitting modal form.
If I understand correctly, this is what I'm supposed to do:
Action::make('generate')
->label('Generate')
->visible(fn () => Gate::allows('can-edit'))
->icon('heroicon-o-sparkles')
->form([
ViewField::make('loading_icon')
->view('forms.loading')
->dehydrated(),...
30 replies