node-red/node-red — pull request #52 by deneboulton (2013-10-30 18:17:54+00:00)
Title: Delete workspace menu button not enabled when adding workspaces dynamically.

The 'Delete workspace' menu button's enabled state was only set when "loading" workspaces, it was not set to enabled when dynamically adding a new workspace via the menu or chart 'plus' button.
Abstracted the logic to add/remove the disabled class on the element - which is now called when adding workspaces from menu/buttons and when loading workspaces.