mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 01:11:54 +08:00

Previously we were only running the `condition` function once, and then overwriting it with a static boolean value. Future changes to composer attributes would not affect button visibility. This commit fixes the issue and adds an acceptance test for the behavior.