Show toast on success save entity settings (#3763)

This commit is contained in:
Bram Kragten 2019-09-19 17:53:16 +02:00 committed by Paulus Schoutsen
parent c617cb5b12
commit cd2b92a449

View File

@ -11,6 +11,7 @@ import LocalizeMixin from "../../mixins/localize-mixin";
import computeStateName from "../../common/entity/compute_state_name"; import computeStateName from "../../common/entity/compute_state_name";
import computeDomain from "../../common/entity/compute_domain"; import computeDomain from "../../common/entity/compute_domain";
import { updateEntityRegistryEntry } from "../../data/entity_registry"; import { updateEntityRegistryEntry } from "../../data/entity_registry";
import { showSaveSuccessToast } from "../../util/toast-saved-success";
import "../../components/ha-paper-icon-button-arrow-prev"; import "../../components/ha-paper-icon-button-arrow-prev";
/* /*
@ -123,6 +124,8 @@ class MoreInfoSettings extends LocalizeMixin(EventsMixin(PolymerElement)) {
} }
); );
showSaveSuccessToast(this, this.hass);
this.registryInfo = info; this.registryInfo = info;
// Keep the more info dialog open at the new entity. // Keep the more info dialog open at the new entity.