If dashboard is saved and you delete a component, not dashboard changed warning is shown. Fixed.
Change some syntax to fluent style.