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

[QUESTION] RSS widget improvement #632

Closed
4 tasks done
wtld opened this issue May 5, 2022 · 3 comments
Closed
4 tasks done

[QUESTION] RSS widget improvement #632

wtld opened this issue May 5, 2022 · 3 comments
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@wtld
Copy link

wtld commented May 5, 2022

Question

I am working on adding two options to RSS widget (I plan a PR):

  1. Optionally don't display item descriptions (only titles)
  2. The ability to display the both date and time, not just the date

But my question is:

Should I change the following fragment in the original widget code:

axios.get(this.endpoint)
  .then((response) => {
    this.processData(response.data);
  })
  .catch((error) => {
    this.error('Unable to RSS feed', error);
  })
  .finally(() => {
    this.finishLoading();
  });

to this one:

this.makeRequest(this.endpoint).then(this.processData);

Seems much cleaner for me :) I am new to Dashy, maybe makeRequest method was added after RSS Widget was created?

Category

Widgets

Please tick the boxes

@wtld wtld added the 🤷‍♂️ Question [ISSUE] Further information is requested label May 5, 2022
@Lissy93
Copy link
Owner

Lissy93 commented May 6, 2022

Yeah, you're right, it should be that :)
I added makeRequest after I'd already created several of the widgets, and it looks like I forgot to refactor that

@liss-bot
Copy link
Collaborator

The fix for this issue has now been released in 2.0.9 ✨

If you haven't done so already, please update your instance to 2.0.9 or later. See 2.0.9 for full info.

Feel free to reach out if you need any more support. If you are enjoying Dashy, consider supporting the project.

@Zovix
Copy link

Zovix commented Nov 26, 2023

I am working on adding two options to RSS widget (I plan a PR):

  1. Optionally don't display item descriptions (only titles)

Was this added as a feature? I was looking for the option in the docs and didn't see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants