Problem/Motivation

There is no way to prevent the "Generate references with AI" button from appearing on node edit forms when references are being generated via an automated workflow rather than by editors.

Steps to reproduce

N/A

Proposed resolution

Add a "Hide generate button" checkbox to the AI Auto-reference configuration page /admin/structure/types/manage/{bundle}/ai-autoreference) under an "Advanced options" section. When checked, the button is suppressed for that bundle.

Remaining tasks

Review

User interface changes

New "Advanced options" details element on the bundle autoreference settings page with a "Hide generate button" checkbox and "Save settings" button.

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

scott_euser created an issue. See original summary.

scott_euser’s picture

Status: Active » Needs review

  • scott_euser committed 4f89da5b on 1.0.x
    feat: #3591577 Ability to hide the save and generate button
    
    By:...
scott_euser’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.