Fix component add/change and delete dialogs

I can just set `editing` on the modal's scope. It doesn't have to be a function.