adata-ui 2.0.87 → 2.0.89

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.
@@ -97,7 +97,11 @@ function onBack() {
97
97
  </div>
98
98
 
99
99
  <div class="flex flex-col gap-2 ">
100
- <a-button block @click="confirm">
100
+ <a-button
101
+ :disabled="!checkbox"
102
+ block
103
+ @click="confirm"
104
+ >
101
105
  {{ t('actions.topUp') }}
102
106
  </a-button>
103
107
  <a-button
@@ -56,7 +56,7 @@ export function useBuyTariffs() {
56
56
  }
57
57
  }
58
58
 
59
- async function leaveRequest(name: any, email: any, phone: any, comment: any) {
59
+ async function leaveRequest(name: any, email: any, phone: any, comment: any, rateCode: any = 'adata_pro') {
60
60
  try {
61
61
  const info = await fetch(`${removeTrailingSlash(userApiURL)}/message/rate`, {
62
62
  method: 'POST',
@@ -71,7 +71,7 @@ export function useBuyTariffs() {
71
71
  email: email,
72
72
  phone_number: phone,
73
73
  message: comment,
74
- rate_code: 'adata_pro',
74
+ rate_code: rateCode,
75
75
  })
76
76
  })
77
77
  const { data } = await info.json().catch(() => ({}))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.87",
4
+ "version": "2.0.89",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",