diff --git a/frontend/src/components/BrandSettings.vue b/frontend/src/components/BrandSettings.vue index 881021b5..630dce55 100644 --- a/frontend/src/components/BrandSettings.vue +++ b/frontend/src/components/BrandSettings.vue @@ -52,7 +52,6 @@ const props = defineProps({ const saveSettings = createResource({ url: 'frappe.client.set_value', makeParams(values) { - console.log(values) return { doctype: 'Website Settings', name: 'Website Settings', @@ -77,7 +76,6 @@ const update = () => { } watch(props.data, (newData) => { - console.log(newData) if (newData && !isDirty.value) { isDirty.value = true } diff --git a/frontend/src/components/Modals/Settings.vue b/frontend/src/components/Modals/Settings.vue index 55581b2f..79717118 100644 --- a/frontend/src/components/Modals/Settings.vue +++ b/frontend/src/components/Modals/Settings.vue @@ -45,6 +45,13 @@ :label="activeTab.label" :description="activeTab.description" /> + { }, ], }, - { - label: 'Settings', - hideLabel: true, - items: [ - { - label: 'Categories', - description: 'Manage the members of your learning system', - icon: 'Network', - }, - ], - }, { label: 'Settings', hideLabel: true, @@ -128,14 +125,10 @@ const tabsStructure = computed(() => { 'Configure the payment gateway and other payment related settings', fields: [ { - label: 'Razorpay Key', - name: 'razorpay_key', - type: 'text', - }, - { - label: 'Razorpay Secret', - name: 'razorpay_secret', - type: 'password', + label: 'Payment Gateway', + name: 'payment_gateway', + type: 'Link', + doctype: 'Payment Gateway', }, { label: 'Default Currency', @@ -143,9 +136,6 @@ const tabsStructure = computed(() => { type: 'Link', doctype: 'Currency', }, - { - type: 'Column Break', - }, { label: 'Apply GST for India', name: 'apply_gst', @@ -165,6 +155,17 @@ const tabsStructure = computed(() => { }, ], }, + { + label: 'Settings', + hideLabel: true, + items: [ + { + label: 'Categories', + description: 'Manage the members of your learning system', + icon: 'Network', + }, + ], + }, { label: 'Customise', hideLabel: false, diff --git a/frontend/src/components/PaymentSettings.vue b/frontend/src/components/PaymentSettings.vue new file mode 100644 index 00000000..2b984853 --- /dev/null +++ b/frontend/src/components/PaymentSettings.vue @@ -0,0 +1,109 @@ + + diff --git a/frontend/src/components/SettingFields.vue b/frontend/src/components/SettingFields.vue index d2b9db31..af174578 100644 --- a/frontend/src/components/SettingFields.vue +++ b/frontend/src/components/SettingFields.vue @@ -80,6 +80,7 @@ :label="__(field.label)" :type="field.type" :rows="field.rows" + :options="field.options" /> @@ -89,7 +90,7 @@