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

Programmatically disable button state

Open atmediauk opened this issue 4 years ago • 0 comments
trafficstars

Hello,

Is it possible to disable button state programmatically as it looks out of place for some types of buttons.

The normal behaviour in Nova for an edit resource button or a link button is to simply load the page. With the nova-button plugin it will first show a loading/ success message and then load the page which makes the UI feel disjointed.

Is there a way to optionally disable this? For example:

Button::make('Text')->link('https://nova.laravel.com', '_self')->disableState();

or

Button::make('Text')->edit('App\Nova\User', $this->user_id)->disableState();

atmediauk avatar Aug 05 '21 19:08 atmediauk