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

Display the Button on Create and Update forms

Open phpMuhammed opened this issue 5 years ago • 10 comments
trafficstars

phpMuhammed avatar Feb 12 '20 20:02 phpMuhammed

You would think changing public property $showOnCreation on Button.php Line 22 to true would solve the issue but it doesn't

public $showOnCreation = true;

Doesn't do anything, still only shows on Detail screen

CaddyDz avatar Feb 16 '20 21:02 CaddyDz

Yeah, its a pitty, that this doesn't work.

@dillingham Any plans to make it work?

bernhardh avatar Sep 24 '20 11:09 bernhardh

You can use/check my fork, I didn't have time to turn it to a proper PR candidate // @bernhardh

CaddyDz avatar Sep 24 '20 11:09 CaddyDz

@CaddyDz Thanks for feedback. Maybe a stupid question, but how can I use your package? Its not on packagist, right?

I have added

    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/CaddyDz/nova-button.git"
        }
    ]

To my composer.json, but I still get the dillingham version?

bernhardh avatar Sep 25 '20 08:09 bernhardh

@bernhardh almost correct, replace "type": "git" by "type": "vcs" and make sure to place master as the version

CaddyDz avatar Sep 25 '20 10:09 CaddyDz

Thats not working. I think the reason is, that the dillingham master branch is "newer" then yours. He updated it 9 days ago. But thanks for your help, I have done another solution with the CustomEditHeader.vue

bernhardh avatar Sep 25 '20 13:09 bernhardh

@bernhardh sorry I've been slammed.. I'll try to get this added soon

dillingham avatar Sep 26 '20 01:09 dillingham

@dillingham: no problem.

I have now created a pull request with that feature plus moved code logic to mixin

bernhardh avatar Oct 05 '20 08:10 bernhardh

@dillingham: Would be really nice if you could merge this?

bernhardh avatar Jan 05 '21 13:01 bernhardh

@CaddyDz I just integrated your fork to replace this package and I am still not seeing the button on create/update forms

Button::make('BUTTON')->link('https://nova.laravel.com'),

Am I missing something?

kevinnivek avatar Feb 06 '21 21:02 kevinnivek