mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 10:48:44 +00:00
Mark new automation as dirty if it has initData (#26953)
This commit is contained in:
@@ -593,6 +593,7 @@ export class HaAutomationEditor extends PreventUnsavedMixin(
|
|||||||
this.hass
|
this.hass
|
||||||
) {
|
) {
|
||||||
const initData = getAutomationEditorInitData();
|
const initData = getAutomationEditorInitData();
|
||||||
|
this._dirty = !!initData;
|
||||||
let baseConfig: Partial<AutomationConfig> = { description: "" };
|
let baseConfig: Partial<AutomationConfig> = { description: "" };
|
||||||
if (!initData || !("use_blueprint" in initData)) {
|
if (!initData || !("use_blueprint" in initData)) {
|
||||||
baseConfig = {
|
baseConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user