@dev.smartpricing/message-composer-layer 4.2.6-brands.0 → 4.2.6-brands.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -161,7 +161,12 @@ function resetForm() {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
watch(isOpen, (val) => {
|
|
164
|
-
if (!val)
|
|
164
|
+
if (!val) {
|
|
165
|
+
resetForm()
|
|
166
|
+
} else if (props.brandId && existingBrand.value) {
|
|
167
|
+
// Re-populate when reopening with the same brand (watcher won't fire since values didn't change)
|
|
168
|
+
populateForm(existingBrand.value)
|
|
169
|
+
}
|
|
165
170
|
})
|
|
166
171
|
|
|
167
172
|
// Pre-fill data.name with brand display name on create only
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev.smartpricing/message-composer-layer",
|
|
3
|
-
"version": "4.2.6-brands.
|
|
3
|
+
"version": "4.2.6-brands.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vue-router": "^5.0.7",
|
|
37
37
|
"vue3-emoji-picker": "^1.1.8",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
|
-
"@dev.smartpricing/message-composer-utils": "4.2.6-brands.
|
|
39
|
+
"@dev.smartpricing/message-composer-utils": "4.2.6-brands.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@nuxt/eslint": "^1.15.2",
|