Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add a "reload widget" button. #1920

Merged
merged 2 commits into from
May 24, 2018
Merged

Add a "reload widget" button. #1920

merged 2 commits into from
May 24, 2018

Conversation

rxl881
Copy link
Contributor

@rxl881 rxl881 commented May 22, 2018

Add a "reload widget" button to allow the user to force reloading of a widget content URL.

This is not (currently) intended for use with production widgets, but is useful in development of "persistent" widgets such as stickerpickers to force reloading of widget content without reloading the whole of riot.

This is currently disabled by default, but can be easily enabled in development by passing "showReload" to the widget AppTile.

@lukebarnard1
Copy link
Contributor

@rxl881 what's wrong with right-click -> "Reload frame" ?

@rxl881
Copy link
Contributor Author

rxl881 commented May 23, 2018

@lukebarnard1 - It's a fair point, it's most likely to be useful in the case (not for stickers, but for most other widgets) where we have to two nested layers of iframe. This button will reload all of the widget, reload frame is likely just to be the inner content, which is probably not what you want.

@dbkr dbkr assigned rxl881 and unassigned dbkr May 24, 2018
@rxl881 rxl881 merged commit b2c26e6 into develop May 24, 2018
@rxl881 rxl881 deleted the rxl881/refreshWidget branch May 24, 2018 17:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants