Skip to content

[QUESTION] RSS widget improvement #632

@wtld

Description

@wtld

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions