custom-sidebar icon indicating copy to clipboard operation
custom-sidebar copied to clipboard

Sideside bar selections doubling up only on home screen

Open oneseventhree opened this issue 4 years ago • 5 comments

Hi,

On https://xxx.xxx.x.xxx:8123/lovelace/default_view my side bar doubles up items and looks like: Screen Shot 2021-06-24 at 10 38 33 am

but on every other page (eg. https://xxx.xxx.x.xxx:8123/hassio/dashboard) it shows up right: Screen Shot 2021-06-24 at 10 38 20 am

What's causing this?

This is my sidebar-order.yaml:

order:
  - item: Overview      # Overview
  - item: map
    hide: true
  - item: Logbook       # Logbook
  - item: history
    hide: true
  - item: HACS          # HACS
    href: /hacs/entry  
  - item: File Editor  # File Editor
    name: File Editor
    href: /core_configurator/dashboard
  - new_item: true
    item: Automations    # Automations
    href: /config/automation/dashboard
    icon: "mdi:robot"
  - new_item: true
    item: Scripts      # Scripts
    href: /config/script/dashboard
    icon: "mdi:script-text"
  - item: Media Browser # Media Browser
    hide: true
  - item: deCONZ          #deCONZ
    href: /core_deconz/dashboard
    bottom: true 
  - item: Developer Tools # Developer Tools
    href: /developer-tools/state
    bottom: true
  - item: Supervisor      # Supervisor
    href: /hassio/dashboard
    bottom: true
  - new_item: true
    item: Snapshots        # Snapshots
    href: /hassio/snapshots
    icon: "mdi:camera-plus"
    bottom: true
  - item: configuration   # Configuration
    href: /config/dashboard
    bottom: true
  - new_item: true
    item: Server Controls # Server Controls
    href: /config/server_control
    icon: "mdi:server"
    bottom: true  

Thanks!

oneseventhree avatar Jun 24 '21 00:06 oneseventhree

Same problem for me - all "new_item" double when on the main overview.

Broekman avatar Jun 29 '21 21:06 Broekman

Same problem for me - all "new_item" double when on the main overview.

did you find a fix? Mines doing it on all pages now

oneseventhree avatar Jul 03 '21 01:07 oneseventhree

I got it working, and it was quite .... sad. If you add the .js to the configuration.yaml AND the lovelace resources, it gets doubled in the overview page.

Solved

aquamarsmg avatar Sep 15 '21 19:09 aquamarsmg

I got it working, and it was quite .... sad. If you add the .js to the configuration.yaml AND the lovelace resources, it gets doubled in the overview page.

Solved

I don't get what you mean? Are you able to run me through it?

oneseventhree avatar Sep 16 '21 07:09 oneseventhree

Sure! So, if you installed it with HACS, or manually but did both the declaration in the configuration.yaml, AND the resources in Lovelave (gets done automatically when HACStalled...), you get duplicated items in your "dashboards", overview, whatever. I just kept the one from the configuration.yaml

frontend: themes: !include_dir_merge_named themes extra_module_url: - /hacsfiles/custom-sidebar/custom-sidebar.js

hope it works for you :D

aquamarsmg avatar Sep 16 '21 14:09 aquamarsmg