Fixing wrong modal title if edited over toolbar

This commit is contained in:
Jan 2026-01-06 17:20:46 +01:00
parent 8d85e4c692
commit 81233db437

View file

@ -490,6 +490,8 @@ export default {
},
fillData(type, id = -1, hideDescription = false) {
this.modalTitle = "Edit ".concat(type);
if (id === -1) {
if (type === 'price')
@ -526,8 +528,6 @@ export default {
} else {
const premise = this.premiseEditStore.getById(id);
this.modalTitle = "Edit ".concat(type);
if (type === "price") {
this.modalProps = {
price: premise.material_cost,