Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5378

Image editor - can't override or hide the default action group

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request
    • 4.4.1
    • Content
    • Yes

    Description

      I can't completely change default action group config, looks like my config is merged with the default config.

      For example, when I add this config:

       

      ibexa:
          system:
              default:
                  image_editor:
                      image_quality: 0.9
                      action_groups:
                          default:
                              actions:
                                  crop:
                                      id: crop
                                      priority: 400
                                      buttons:
                                          16-5:
                                              label: 1:1
                                              ratio:
                                                  x: 16
                                                  y: 5
                                          16-9:
                                              label: 16:9
                                              ratio:
                                                  x: 16
                                                  y: 9
                                          400-209:
                                              label: 400:209
                                              ratio:
                                                  x: 400
                                                  y: 209
       

      Instead of seeing the three buttons I defined, I see all default buttons plus my buttons. Also on the screenshot you can see that it's scrolled a little bit to the right, because having more buttons results in a long list, that is not wrapped into multiple lines. You have to scroll horizontally to see the additional buttons.

       

       

      I've also tried different approach. I hid all actions in te default action group and added new action group, like this:

       

      ibexa:
          system:
              default:
                  image_editor:
                      image_quality: 0.9
                      action_groups:
                          default:
                              actions:
                                  crop:
                                      id: crop
                                      visible: false
                                  flip:
                                      id: flip
                                      visible: false
                                  focal-point:
                                      id: focal-point
                                      visible: false
                          mynewactiongroup:
                              id: mynewactiongroup
                              label: My new action group
                              actions:
                                  crop:
                                      id: crop
                                      priority: 400
                                      buttons:
                                          16-5:
                                              label: 1:1
                                              ratio:
                                                  x: 16
                                                  y: 5
                                          16-9:
                                              label: 16:9
                                              ratio:
                                                  x: 16
                                                  y: 9
                                          400-209:
                                              label: 400:209
                                              ratio:
                                                  x: 400
                                                  y: 209
                                  flip:
                                      id: flip
                                      priority: 300
      

      and this new action group works fine and I have a section called "My new action group" only with buttons i have defined, but the downside is that I'm unable to hide the default action group, so there's always an empty "default" section in the editor. Just like on this screenshot

       

       

       

      Designs

        Attachments

          1. image-2023-03-23-13-51-26-569.png
            16 kB
            Pawel Goca
          2. image-2023-03-23-13-56-47-932.png
            34 kB
            Pawel Goca
          3. image-2023-03-23-13-56-51-805.png
            34 kB
            Pawel Goca

          Activity

            People

              Unassigned Unassigned
              e36b8d7e-ac7b-4a9f-87d9-0c1a1a3f8db1@accounts.ibexa.co Pawel Goca
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: