I have a plugin that (almost) creates Digital Ocean Droplets and installs Discourse.
I have a page with a template that renders stuff about the Rails Model, the droplet that it creates, and the Discourse instance that gets installed on the droplet. I have all the information that need flowing between rails and ember with the MessageBus. I want to display different stuff depending on whether
- there is enough info to create the droplet
- task that creates the droplet is running (it updates stuff in the model)
- Discourse has been installed
I keep getting
You modified "hasStatus" twice on <@ember/component:ember660> in a single render.
EDIT: Well, that was because I had two computed
functions watching the same thing…
I think I’ve finally realized that I can’t do this using something like {{#if hasStatus}}
(which is a computed function) in the template since the page will need to be re-rendered to display the status after they click the “create droplet” button (as it’ll then set the installation_status variable which displays what is happening in the install.
Or maybe I have some other error that’s triggering that and what I’m doing should work?
So I guess what I need to do is use <gasp>
CSS to hide the various elements?