@cccarv82/freya 3.4.0 → 3.4.1
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/cli/web-ui.css +2 -1
- package/cli/web-ui.js +19 -3
- package/package.json +1 -1
package/cli/web-ui.css
CHANGED
|
@@ -1781,7 +1781,8 @@ body:not([data-page="kanban"]) .kanban-col-body {
|
|
|
1781
1781
|
background: var(--paper2);
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
|
-
.kanban-action-btn.complete-btn:hover
|
|
1784
|
+
.kanban-action-btn.complete-btn:hover,
|
|
1785
|
+
.kanban-action-btn.resolve-btn:hover {
|
|
1785
1786
|
color: #22c55e;
|
|
1786
1787
|
border-color: #22c55e;
|
|
1787
1788
|
}
|
package/cli/web-ui.js
CHANGED
|
@@ -3335,9 +3335,9 @@
|
|
|
3335
3335
|
html += '</div>';
|
|
3336
3336
|
if (status !== 'RESOLVED') {
|
|
3337
3337
|
html += '<div class="kanban-card-actions">'
|
|
3338
|
-
+ '<button class="
|
|
3339
|
-
+ '<
|
|
3340
|
-
+ '</
|
|
3338
|
+
+ '<button class="kanban-action-btn resolve-btn" title="Resolver">\u2713</button>'
|
|
3339
|
+
+ '<button class="kanban-action-btn edit-btn" title="Editar">\u270E</button>'
|
|
3340
|
+
+ '</div>';
|
|
3341
3341
|
}
|
|
3342
3342
|
card.innerHTML = html;
|
|
3343
3343
|
|
|
@@ -3363,6 +3363,22 @@
|
|
|
3363
3363
|
});
|
|
3364
3364
|
}
|
|
3365
3365
|
|
|
3366
|
+
// Resolve button (quick action)
|
|
3367
|
+
var resolveBtn = card.querySelector('.resolve-btn');
|
|
3368
|
+
if (resolveBtn) {
|
|
3369
|
+
resolveBtn.onclick = async function(e) {
|
|
3370
|
+
e.stopPropagation();
|
|
3371
|
+
try {
|
|
3372
|
+
await api('/api/blockers/update', {
|
|
3373
|
+
dir: dirOrDefault(), id: b.id,
|
|
3374
|
+
patch: { status: 'RESOLVED' }
|
|
3375
|
+
});
|
|
3376
|
+
showToast('ok', 'Blocker resolvido');
|
|
3377
|
+
await loadKanban();
|
|
3378
|
+
} catch { showToast('err', 'Falhou'); }
|
|
3379
|
+
};
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3366
3382
|
// Edit button
|
|
3367
3383
|
var editBtn = card.querySelector('.edit-btn');
|
|
3368
3384
|
if (editBtn) {
|
package/package.json
CHANGED