]> cat aescling's git repositories - mastodon.git/commit
Fix expiring polls not being displayed as such in the WebUI (#11835)
authorThibG <thib@sitedethib.com>
Mon, 16 Sep 2019 12:32:26 +0000 (14:32 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 16 Sep 2019 12:32:26 +0000 (14:32 +0200)
commit524187b65344f6bcedb9bc188df7b6032540ac48
tree0f6688a5addb2bc84e7938d05c8bddeae9346775
parent1882ca673d46515f87cb9f6c232129335b6f9ff9
Fix expiring polls not being displayed as such in the WebUI (#11835)

* Fix expiring polls not being displayed as such in the WebUI

* Reset expiration state and timer when a poll changes

* Refactor timer logic in `_setupTimer`, only set expiration if props have changed

* Refactor and do not use deprecated React lifecycles
app/javascript/mastodon/components/poll.js