Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In admin/config/development/sync, if there is nothing to import, we might want to hide the "Import all" button. See attached image.
Comments
Comment #1
alberto56 CreditAttribution: alberto56 commentedHere is a patch for this
Comment #2
alberto56 CreditAttribution: alberto56 commentedOops, here it is.
Comment #3
alberto56 CreditAttribution: alberto56 commentedComment #5
Anonymous (not verified) CreditAttribution: Anonymous commented#2: 1892662-1-dont-show-import-all-button-if-nothing-to-import.patch queued for re-testing.
Comment #7
iaha CreditAttribution: iaha commentedPatch hides import button when there is nothing to import. Tests updated to assert that import button is/is not hidden as appropriate.
Comment #8
iaha CreditAttribution: iaha commentedComment #10
rli#7: 1892662-config-hide-importall-button.patch queued for re-testing.
Comment #11
rli#2: 1892662-1-dont-show-import-all-button-if-nothing-to-import.patch queued for re-testing.
Comment #12
swentel CreditAttribution: swentel commentedMakes sense, did a re-roll because of the trailing spaces in the patch in #7
Comment #13
rliThe patch in #12 works for me.
Comment #14
catchMakes sense. Committed/pushed to 8.x.