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]: Indication of the absence of favorites #2225

Open
1 task done
Ludy87 opened this issue Nov 13, 2024 · 6 comments
Open
1 task done

[Bug]: Indication of the absence of favorites #2225

Ludy87 opened this issue Nov 13, 2024 · 6 comments
Assignees
Labels
Bug Something isn't working Front End Issues or pull requests related to front-end development Priority: Low Issues or pull requests with low priority

Comments

@Ludy87
Copy link
Contributor

Ludy87 commented Nov 13, 2024

Installation Method

None

The Problem

The index page will show if there are no favorites.

image


The note will not be displayed on any other page.

image

Version of Stirling-PDF

0.32.0

Last Working Version of Stirling-PDF

idk

Page Where the Problem Occurred

No response

Docker Configuration

No response

Relevant Log Output

No response

Additional Information

No response

Browsers Affected

Firefox, Chrome

No Duplicate of the Issue

  • I have verified that there are no existing issues raised related to my problem.
@Ludy87 Ludy87 added Bug Something isn't working Priority: Low Issues or pull requests with low priority Front End Issues or pull requests related to front-end development labels Nov 13, 2024
Copy link

dosubot bot commented Nov 13, 2024

The issue you're experiencing is related to the display of the "no favorites" message, which appears on the index page but not on other pages. This behavior is due to the specific JavaScript code that handles the display of favorites on the index page. The updateFavoritesSection function is responsible for managing the display of favorite items on the index page. It updates the favorites section by checking which cards are marked as favorites in localStorage and then displays them. If no favorites are found, it hides the favorites section [1].

On other pages, the absence of a similar mechanism might be why the "no favorites" message is not displayed. The updateFavoritesDropdown function is used to populate the favorites dropdown menu across different pages, and it displays a default message if no favorites are found [2]. However, this function might not be directly linked to the page content outside the dropdown, which could explain the inconsistency.

To address this, you might consider implementing a similar logic to the updateFavoritesSection function on other pages to ensure the "no favorites" message is consistently displayed.

To continue talking to Dosu, mention @dosu.

@Frooodle
Copy link
Member

I don't know how I never noticed his 😂

@Ludy87
Copy link
Contributor Author

Ludy87 commented Nov 13, 2024

It's all just coincidences 😂

@DimK10
Copy link
Collaborator

DimK10 commented Nov 13, 2024

Is the homecard script used in all pages of just the home page?

@Frooodle
Copy link
Member

Just homepage :(

@DimK10
Copy link
Collaborator

DimK10 commented Nov 13, 2024

ahh i guess i'll check this one too.

@DimK10 DimK10 self-assigned this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Front End Issues or pull requests related to front-end development Priority: Low Issues or pull requests with low priority
Projects
None yet
Development

No branches or pull requests

3 participants