Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Panel] Broken *back* button in `pages dialog` #1841

Closed
steirico opened this issue Jun 8, 2019 · 1 comment

Comments

3 participants
@steirico
Copy link
Contributor

commented Jun 8, 2019

Describe the bug
The pages field allows to select any existing page following the structure of the site with all existing pages by the means of the pages dialog. The pages dialog provides a back button in the upper left corner. Clicking this button brings the dialog always back to its top-level.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a kirby project
  2. Add a page with a sub page which has another sub page and so on... In my test case I named them Test01, Test02, Test03.
  3. Add a pages field to a blueprint:
title: Site
columns:
  - width: 1/2
    sections:
      fields:
        type: fields
        fields:
          test-pages:
            type: pages
  1. Click on field's Select button in order to open the pages dialog.
  2. Follow the sub pages structure created in (2).
  3. Clicking on the back button in the upper left corner brings the dialog back to its top-level.

pages-dialog-bug

Expected behavior

Seen https://github.com/getkirby/kirby/blob/master/panel/src/components/Dialogs/PagesDialog.vue#L108, I expect to go up exactly one level when clicking on the back button:

pages-dialog-fix

Kirby Version

3.2.0-rc2
3.1.4

@bastianallgeier

This comment has been minimized.

Copy link
Contributor

commented Jun 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.