@mundogamernetwork/shared-ui 1.1.74 → 1.1.76
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/locales/de.json +6 -2
- package/locales/en.json +6 -2
- package/locales/pt-BR.json +6 -2
- package/locales/ro.json +6 -2
- package/package.json +1 -1
- package/pages/key-campaigns/redeem-key-approved.vue +10 -3
package/locales/de.json
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
"rp_label": "Redeemed by",
|
|
133
133
|
"who_redeem": "Who redeemed",
|
|
134
134
|
"created_by": "Published by",
|
|
135
|
-
"no_data": "Campaign not found"
|
|
135
|
+
"no_data": "Campaign not found",
|
|
136
|
+
"title": "Kampagne"
|
|
136
137
|
},
|
|
137
138
|
"other_campaigns": "Andere Kampagnen",
|
|
138
139
|
"available": "verfügbar",
|
|
@@ -163,7 +164,10 @@
|
|
|
163
164
|
"cancelled": "Abgebrochen",
|
|
164
165
|
"expired": "Abgelaufen",
|
|
165
166
|
"revoked": "Widerrufen"
|
|
166
|
-
}
|
|
167
|
+
},
|
|
168
|
+
"status_label": "Status",
|
|
169
|
+
"error_no_keys": "Derzeit sind keine Schlüssel für diese Kampagne verfügbar.",
|
|
170
|
+
"error_not_approved": "Ihre Anfrage wurde noch nicht genehmigt."
|
|
167
171
|
},
|
|
168
172
|
"materials": {
|
|
169
173
|
"title": "Submit material",
|
package/locales/en.json
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
"rp_label": "Redeemed by",
|
|
133
133
|
"who_redeem": "Who redeemed",
|
|
134
134
|
"created_by": "Published by",
|
|
135
|
-
"no_data": "Campaign not found"
|
|
135
|
+
"no_data": "Campaign not found",
|
|
136
|
+
"title": "Campaign"
|
|
136
137
|
},
|
|
137
138
|
"other_campaigns": "Other campaigns",
|
|
138
139
|
"available": "available",
|
|
@@ -163,7 +164,10 @@
|
|
|
163
164
|
"cancelled": "Cancelled",
|
|
164
165
|
"expired": "Expired",
|
|
165
166
|
"revoked": "Revoked"
|
|
166
|
-
}
|
|
167
|
+
},
|
|
168
|
+
"status_label": "Status",
|
|
169
|
+
"error_no_keys": "No keys available for this campaign at the moment.",
|
|
170
|
+
"error_not_approved": "Your request has not been approved yet."
|
|
167
171
|
},
|
|
168
172
|
"materials": {
|
|
169
173
|
"title": "Submit material",
|
package/locales/pt-BR.json
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
"rp_label": "Redeemed by",
|
|
133
133
|
"who_redeem": "Who redeemed",
|
|
134
134
|
"created_by": "Published by",
|
|
135
|
-
"no_data": "Campaign not found"
|
|
135
|
+
"no_data": "Campaign not found",
|
|
136
|
+
"title": "Campanha"
|
|
136
137
|
},
|
|
137
138
|
"other_campaigns": "Outras campanhas",
|
|
138
139
|
"available": "disponível",
|
|
@@ -163,7 +164,10 @@
|
|
|
163
164
|
"cancelled": "Cancelado",
|
|
164
165
|
"expired": "Expirado",
|
|
165
166
|
"revoked": "Revogado"
|
|
166
|
-
}
|
|
167
|
+
},
|
|
168
|
+
"status_label": "Status",
|
|
169
|
+
"error_no_keys": "Não há chaves disponíveis para esta campanha no momento.",
|
|
170
|
+
"error_not_approved": "Sua solicitação ainda não foi aprovada."
|
|
167
171
|
},
|
|
168
172
|
"materials": {
|
|
169
173
|
"title": "Submit material",
|
package/locales/ro.json
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
"rp_label": "Redeemed by",
|
|
133
133
|
"who_redeem": "Who redeemed",
|
|
134
134
|
"created_by": "Published by",
|
|
135
|
-
"no_data": "Campaign not found"
|
|
135
|
+
"no_data": "Campaign not found",
|
|
136
|
+
"title": "Campanie"
|
|
136
137
|
},
|
|
137
138
|
"other_campaigns": "Alte campanii",
|
|
138
139
|
"available": "disponibil",
|
|
@@ -163,7 +164,10 @@
|
|
|
163
164
|
"cancelled": "Anulat",
|
|
164
165
|
"expired": "Expirat",
|
|
165
166
|
"revoked": "Revocat"
|
|
166
|
-
}
|
|
167
|
+
},
|
|
168
|
+
"status_label": "Status",
|
|
169
|
+
"error_no_keys": "Nu există chei disponibile pentru această campanie în acest moment.",
|
|
170
|
+
"error_not_approved": "Cererea ta nu a fost aprobată încă."
|
|
167
171
|
},
|
|
168
172
|
"materials": {
|
|
169
173
|
"title": "Submit material",
|
package/package.json
CHANGED
|
@@ -52,7 +52,14 @@ async function reveal() {
|
|
|
52
52
|
error.value = $i18n.t("keys.campaigns.error_reveal")
|
|
53
53
|
}
|
|
54
54
|
} catch (e: any) {
|
|
55
|
-
|
|
55
|
+
const code = e?.response?.data?.message || ""
|
|
56
|
+
if (code === "NO_KEYS_AVAILABLE" || code === "KEY_ITEM_NOT_FOUND") {
|
|
57
|
+
error.value = $i18n.t("keys.campaigns.error_no_keys")
|
|
58
|
+
} else if (code === "KEY_NOT_APPROVED") {
|
|
59
|
+
error.value = $i18n.t("keys.campaigns.error_not_approved")
|
|
60
|
+
} else {
|
|
61
|
+
error.value = code || $i18n.t("keys.campaigns.error_reveal")
|
|
62
|
+
}
|
|
56
63
|
} finally {
|
|
57
64
|
revealing.value = false
|
|
58
65
|
}
|
|
@@ -92,7 +99,7 @@ function goBack() {
|
|
|
92
99
|
<div class="skeleton" v-for="i in 2" :key="i" />
|
|
93
100
|
</div>
|
|
94
101
|
|
|
95
|
-
<div v-else-if="error && !
|
|
102
|
+
<div v-else-if="error && !requestData" class="state error">{{ error }}</div>
|
|
96
103
|
|
|
97
104
|
<div v-else class="content">
|
|
98
105
|
<div class="title-bar">
|
|
@@ -133,7 +140,7 @@ function goBack() {
|
|
|
133
140
|
<!-- Request info -->
|
|
134
141
|
<div v-if="requestData" class="info-grid">
|
|
135
142
|
<div class="info-row" v-if="requestData.status_request?.name">
|
|
136
|
-
<span class="info-label">{{ $t("keys.campaigns.
|
|
143
|
+
<span class="info-label">{{ $t("keys.campaigns.status_label") }}</span>
|
|
137
144
|
<span class="info-val">{{ requestData.status_request.name }}</span>
|
|
138
145
|
</div>
|
|
139
146
|
<div class="info-row" v-if="requestData.key?.name">
|