feat(settings): montzar_product_id as select from partner product API

Load products from /admin/montzar/products with searchable select UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 14:02:48 +03:30
co-authored by Cursor
parent 022796738d
commit 46c397804f
4 changed files with 118 additions and 1 deletions
@@ -36,6 +36,13 @@
@update:value="emit('update:value', $event)"
/>
<MontzarProductIdField
v-else-if="isMontzarProductId"
:model-value="modelValue"
:disabled="disabled"
@update:value="emit('update:value', $event)"
/>
<TemplateTextField
v-else-if="isTemplateField"
:model-value="modelValue"
@@ -128,6 +135,7 @@
</template>
<script setup lang="ts">
import MontzarProductIdField from './MontzarProductIdField.vue'
import MainWalletProductsField from './MainWalletProductsField.vue'
import PartnerServerUrlsField from './PartnerServerUrlsField.vue'
import SettingToggle from './SettingToggle.vue'
@@ -175,6 +183,7 @@ const fieldType = computed<SettingFieldType>(() =>
)
const isZaarboxPriceKey = computed(() => props.settingKey === 'zaarbox_price_key')
const isMontzarProductId = computed(() => props.settingKey === 'montzar_product_id')
const isMainWalletProducts = computed(() => props.settingKey === 'main_wallet_products')
const isSupportMessengers = computed(() => props.settingKey === 'support_messengers')
const isPartnerServerUrls = computed(() => props.settingKey === 'zaarbox_api_url')