I am looking for a solution to represent unsaved/dirty data in Lightning (console view). So, when accessing Lightning Design System, it's possible to select "Navigation Tab Bar" and select a state called "Unsaved Tab", which is represented by a blue asterisk.
A similar feature is available for VF pages through a method called setTabUnsavedChanges(), but I couldn't find anything similar in lightning:workspaceAPI.
Visualforce Pages: setTabUnsavedChanges()
Sets the unsaved changes icon (Unsaved changes on tab icon ) on subtabs to indicate unsaved data. This method is only available in API version 23.0 or later.
So given the context, my question is...
Is there any way to set an Unsaved tab in Lightning? What's the best way to represent unsaved data on your app?