dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] Edit Button on Subpage scrambles the entire config of this page

Open Zwixx opened this issue 3 years ago • 5 comments

Environment

Self-Hosted (Docker)

System

Firefox, Docker 20.10.16, Ubuntu 22.04.1

Version

2.1.1

Describe the problem

Hello, I use dashy for a while and now tried subpages. I made my own subpage in a Editor and all worked fine. Then I tried to edit this page in the build-in editor.

On the main page (right-click edit) all works fine. In the Subpage on every button I click on edit, the same dialog with the same title and data are shown. The data are shown from another button in this page, but not the right one. If I saved this button the entire page is scrambled and all buttons show the same title.

Additional info

No response

Please tick the boxes

Zwixx avatar Aug 12 '22 14:08 Zwixx

There will be an error in the console, you'll need to share that (here's how)

Lissy93 avatar Aug 13 '22 20:08 Lissy93

Yes, there is one:

Dashy V2.1.1 🚀 dashy.390818b7.js:1:54365 Source-Map-Fehler: Error: request failed with status 404 Ressourcen-Adresse: http://x.x.x.x:4000/js/dashy.390818b7.js Source-Map-Adresse: dashy.390818b7.js.map

But only one time. Then, another time the following warning every time I open this Subpage:

⚠️ Warning ⚠️ The path to 'google' could not be resolved

I hope this helps

Zwixx avatar Aug 13 '22 21:08 Zwixx

Okay, yup, and share the relevant parts of your config.

This isn't a bug with Dashy, but rather an issue with your config. It could be a CORS error, or a typo in the path to the page, or something like that.

Lissy93 avatar Aug 14 '22 12:08 Lissy93

I made a test file

conf.yaml

# yaml-language-server: $schema=schema.json
appConfig:
  theme: material-dark
  backgroundImg: /img/bg.png
  layout: auto
  iconSize: medium
  language: de
  routingMode: hash
pageInfo:
  title: Dashboard
  description: HomeLab - Standard
  navLinks:
    - title: Documentation
      path: https://dashy.to/docs
      target: newtab
  footerText: ''
sections:
  - name: Section 1 - YT
    items:
      - title: YouTube - Barlow's Hexer Blog
        description: ''
        icon: icons/youtubedl.png
        url: http://www.youtube.com/watch?v=8QI8zF0Lqis
        id: 0_1088_youtubebarlowshexerblog
      - title: YouTube
        description: ''
        icon: icons/youtubedl.png
        url: https://www.youtube.com/
        id: 1_1088_youtube
pages:
  - name: TestSeite
    path: conf.test.yaml

conf.test.yaml:

# yaml-language-server: $schema=schema.json
---
# Page meta info, like heading, footer text and nav links
pageInfo:
  title: Dashy - A
  description: A, was sonst :)

# Optional app settings and configuration
appConfig:
  theme: material-dark
  backgroundImg: /img/bg.png
  routingMode: hash

# Main content - An array of sections, each containing an array of items
sections: # An array of sections
- name: Test
  items:
  - description: ""
    icon: favicon
    title: "The Example"
    url: https://example.com
  - description: ""
    icon: favicon
    title: "Bing"
    url: https://bing.com

Zwixx avatar Aug 14 '22 14:08 Zwixx

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Sep 14 '22 01:09 liss-bot

Any news or Suggestions?

Zwixx avatar Sep 17 '22 16:09 Zwixx

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Oct 18 '22 01:10 liss-bot

This issue was automatically closed because it has been stalled for over 6 weeks with no activity.

liss-bot avatar Oct 24 '22 01:10 liss-bot