home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.05k stars 2.77k forks source link

Sidebar - removing items and rearranging does not work #10488

Closed hklages closed 2 years ago

hklages commented 3 years ago

Checklist

Describe the issue you are experiencing

As user "henning" I edited the sidebar but after logging out/in, the old one shows up again (with Media Browser, Map, ...)

custom panel

Describe the behavior you expected

I would expect, that my customized sidebar is stored and after logging in again shows up

Steps to reproduce the issue

  1. profile user, Change the order and hide items from the sidebar
  2. delete some, rearranged others and pushed the Done button
  3. result: sidebar as expected
  4. log out
  5. log in as same user
  6. "old" sidebar shows up agin ...

What version of Home Assistant Core has the issue?

core-2021.10.6

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Edge Version 95.0.1020.40 (Official build) (64-bit)

Which operating system are you using to run this browser?

windows 10

State of relevant entities

No response

Problem-relevant frontend configuration

panel_custom:
  - name: ha_server_con
    sidebar_title: ServerControl
    sidebar_icon: mdi:cog-transfer
    js_url: /api/hassio/app/entrypoint.js
    url_path: "config/server_control"
    embed_iframe: true
    require_admin: true
    config:
      ingress: core_configurator
  - name: ha_auto
    sidebar_title: Automations
    sidebar_icon: mdi:cog-outline
    js_url: /api/hassio/app/entrypoint.js
    url_path: "config/automation"
    embed_iframe: true
    require_admin: true
    config:
      ingress: core_configurator

panel_iframe:
  homepilot:
    title: "HomePilot"
    url: "http://192.168.178.27"
    icon: mdi:window-shutter

Javascript errors shown in your browser console/inspector

none

Additional information

No response

spacegaier commented 2 years ago

That is not a bug, but the current design / implementation. The sidebar settings combined with theme related info is stored in the user session. So once you log out those settings are removed.

Feel free to raise a feature request (I wouldn't be surprised if one already exists for that).