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.