Fixing wrong modal title if edited over toolbar
This commit is contained in:
parent
8d85e4c692
commit
81233db437
1 changed files with 2 additions and 2 deletions
|
|
@ -490,6 +490,8 @@ export default {
|
||||||
},
|
},
|
||||||
fillData(type, id = -1, hideDescription = false) {
|
fillData(type, id = -1, hideDescription = false) {
|
||||||
|
|
||||||
|
this.modalTitle = "Edit ".concat(type);
|
||||||
|
|
||||||
if (id === -1) {
|
if (id === -1) {
|
||||||
|
|
||||||
if (type === 'price')
|
if (type === 'price')
|
||||||
|
|
@ -526,8 +528,6 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
const premise = this.premiseEditStore.getById(id);
|
const premise = this.premiseEditStore.getById(id);
|
||||||
|
|
||||||
this.modalTitle = "Edit ".concat(type);
|
|
||||||
|
|
||||||
if (type === "price") {
|
if (type === "price") {
|
||||||
this.modalProps = {
|
this.modalProps = {
|
||||||
price: premise.material_cost,
|
price: premise.material_cost,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue