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

[Bug]: admin-sdk location id not switching #432

Open
1 task done
bilobait-lohrmann opened this issue Dec 11, 2024 · 0 comments
Open
1 task done

[Bug]: admin-sdk location id not switching #432

bilobait-lohrmann opened this issue Dec 11, 2024 · 0 comments
Labels
type: bug 🐛 Something isn't working

Comments

@bilobait-lohrmann
Copy link

Package

@meteor/admin-sdk

Package version

5.5.1

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-jdkk7of5?file=src%2FApp.vue

Steps to reproduce

  1. create an app with two menu entries

  2. Switch between the menu entries. The Title is switching but the content of the iFrame can not be changed because the location id is not changing (have a look at the browser console if using my example
    `if (sw.location.is(sw.location.MAIN_HIDDEN)) {
    sw.ui.menu.addMenuItem({
    label: this.$i18n.t('Title 1'),
    locationId: 'location-title-1',
    displaySearchBar: false,
    parent: 'sw-catalogue',
    })

    sw.ui.menu.addMenuItem({
    label: this.$i18n.t('Title 2'),
    locationId: 'location-title-2',
    displaySearchBar: false,
    parent: 'sw-catalogue',
    })
    }
    else {
    console.log(sw.location.get())
    }`

Actual behavior

Title name is switching but iFrame content not

Expected behavior

Title name and iFrame content should switch

System Info

Any additional comments?

No response

Code of Conduct

@bilobait-lohrmann bilobait-lohrmann added the type: bug 🐛 Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant