nova-button icon indicating copy to clipboard operation
nova-button copied to clipboard

Confirm does not show dialogue box

Open cyrilbensonyu opened this issue 5 years ago • 12 comments

Button::make('Archive', 'user-archive') ->style('danger-outline') ->confirm('Are you sure you want to archive this user?') ->reload(),

I'm using this line of code and confirm dialogue does not show up whenever I click the button. I'm using the latest Laravel Nova version (3.12).

cyrilbensonyu avatar Oct 20 '20 01:10 cyrilbensonyu

...same here. confim() works on the detail form, but not on index (nova 3.16.3)

nilsE avatar Dec 06 '20 09:12 nilsE

It works but only on the last entry, seems JS bug.

RomkaLTU avatar Dec 09 '20 09:12 RomkaLTU

@dillingham did you solve this issue

i have the same

when i use confirm() , only the last button can be clickable

OthmanAlseagh avatar Mar 15 '21 15:03 OthmanAlseagh

same problem here, only the last button show the confirm dialog.

dalmarcolucas avatar Jun 17 '21 13:06 dalmarcolucas

did you solve the problem

piteurstudioislam avatar Jul 28 '21 15:07 piteurstudioislam

@piteurstudioislam Yes, I forked this repo and created my own package just to fix the bug.

cyrilbensonyu avatar Jul 28 '21 15:07 cyrilbensonyu

can yopu give it to me

piteurstudioislam avatar Jul 28 '21 15:07 piteurstudioislam

@cyrilbensonyu cAN YOU GIVE The package

piteurstudioislam avatar Jul 29 '21 09:07 piteurstudioislam

sorry, I did not made it public

cyrilbensonyu avatar Jul 29 '21 10:07 cyrilbensonyu

Did you mad it now @cyrilbensonyu

piteurstudioislam avatar Jul 29 '21 10:07 piteurstudioislam

@cyrilbensonyu would love it if you could share your fix - this is an open source project and lots of people depend on it.

stardothosting avatar Aug 11 '21 15:08 stardothosting

@piteurstudioislam The fix in another thread referencing a forked pull request worked for me : https://github.com/qikker-online/nova-button/commit/dc984708eecbaa887d4455828135912114cf8b41

stardothosting avatar Aug 11 '21 17:08 stardothosting