Problem/Motivation

Add a new view
Create a page display, typing in the title should auto-fill the path, but it doesn't.

Proposed resolution

Include the views_ui/views_ui.admin library in the ViewAddForm

Remaining tasks

User interface changes

API changes

Comments

idebr’s picture

Status: Active » Needs review
StatusFileSize
new578 bytes
olli’s picture

+++ b/core/modules/views_ui/src/ViewAddForm.php
@@ -56,6 +56,7 @@ protected function prepareEntity() {
     $form['#attached']['library'][] = 'views_ui/admin.styling';
+    $form['#attached']['library'][] = 'views_ui/views_ui.admin';

That 'admin.styling' is a dependency of 'views_ui.admin' library so I think we can remove it.

idebr’s picture

StatusFileSize
new101.4 KB
new98.11 KB

Correct, thanks olli! Updated patch attached.

Screenshot before:

Screenshot after:

idebr’s picture

StatusFileSize
new570 bytes
new598 bytes

... and the patch.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community
dawehner’s picture

I don't get why we have a separate one in the first place but well, you never know.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for adding the screenshots. This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 35aad82 and pushed to 8.0.x. Thanks!

  • alexpott committed 35aad82 on 8.0.x
    Issue #2410427 by idebr: admin/structure/views/add shoud include the...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.