@dev.smartpricing/message-composer-layer 5.0.3-next.0 → 5.0.3
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.
- package/app/pages/index.vue +6 -1
- package/package.json +2 -2
package/app/pages/index.vue
CHANGED
|
@@ -10,6 +10,7 @@ import { ref, watch, computed } from 'vue'
|
|
|
10
10
|
const { hasWhatsapp, hasEmail, defaultRenderType, isRenderTypeAllowed } = useChannels()
|
|
11
11
|
const { trackEvent } = useTracking()
|
|
12
12
|
const { t } = useI18n()
|
|
13
|
+
const appContext = useAppContextStore()
|
|
13
14
|
|
|
14
15
|
// Render type with session persistence
|
|
15
16
|
const RENDER_TYPE_KEY = 'template_render_type'
|
|
@@ -58,7 +59,11 @@ const tabItems = computed(() => {
|
|
|
58
59
|
>
|
|
59
60
|
<template #actions>
|
|
60
61
|
<CommonOrganizationSelect />
|
|
61
|
-
<MetaImportButton
|
|
62
|
+
<MetaImportButton
|
|
63
|
+
v-if="appContext.isAdmin"
|
|
64
|
+
:enabled="listLoaded"
|
|
65
|
+
@imported="renderType = 'whatsapp_v1'"
|
|
66
|
+
/>
|
|
62
67
|
<CreateTemplateButton />
|
|
63
68
|
</template>
|
|
64
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev.smartpricing/message-composer-layer",
|
|
3
|
-
"version": "5.0.3
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"vue-router": "^5.0.7",
|
|
36
36
|
"vue3-emoji-picker": "^1.1.8",
|
|
37
37
|
"zod": "^4.4.3",
|
|
38
|
-
"@dev.smartpricing/message-composer-utils": "5.0.3
|
|
38
|
+
"@dev.smartpricing/message-composer-utils": "5.0.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@dev.smartpricing/platform-layer": "^0.0.23",
|