Skip to content

Do not display "new file" menu generate image action when image generation provider is disabled #421

@mvvvmd

Description

@mvvvmd

Which version of assistant are you using?

2.11.0

Which version of Nextcloud are you using?

32.0.2

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Vivaldi 7.7.3851.58, Firefox 145.0.2

Describe the Bug

While no image provider is configured and image generation provider is disabled in the settings the "new file" menu generate image action is still displayed for users. When the user clicks on the action a error is displayed.

I also ran the following command and cleared server and browser caches:

occ config:app:set assistant disableFilesNewMenuPlugin --value 1
Config value 'disableFilesNewMenuPlugin' for app 'assistant' is now set to '1', stored as mixed in fast cache

Expected Behavior

The new file image generation action should not be displayed when image generation is disabled.

To Reproduce

  • Disable image generation provider in the Assistant administrator settings under enabled features.
  • Open the New menu under Files
  • Click Generate image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions