payment-skill 1.1.5 → 1.1.6
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/package.json +1 -1
- package/public/dashboard.js +9 -0
package/package.json
CHANGED
package/public/dashboard.js
CHANGED
|
@@ -184,6 +184,13 @@ function updateDomainsList(domainList, mode = 'blacklist') {
|
|
|
184
184
|
const container = document.getElementById('domains-list');
|
|
185
185
|
if (!container) return;
|
|
186
186
|
|
|
187
|
+
console.log('Domain mode:', domainMode, 'Domains:', domains);
|
|
188
|
+
|
|
189
|
+
if (domains.length === 0) {
|
|
190
|
+
container.innerHTML = '<span style="color: var(--text-secondary); font-size: 10px;">No domains configured</span>';
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
|
|
187
194
|
container.innerHTML = domains.map(d => {
|
|
188
195
|
// Color based on mode
|
|
189
196
|
let bgColor, textColor, borderColor;
|
|
@@ -229,7 +236,9 @@ async function removeDomain(domain) {
|
|
|
229
236
|
|
|
230
237
|
async function saveDomainMode() {
|
|
231
238
|
const mode = document.getElementById('domain-mode').value;
|
|
239
|
+
console.log('Saving domain mode:', mode);
|
|
232
240
|
await apiPost('/api/limits/domains', { mode });
|
|
241
|
+
await loadLimits(); // Reload to update colors
|
|
233
242
|
}
|
|
234
243
|
|
|
235
244
|
// Geography Management
|