update: ics utl verification, custom in app name

This commit is contained in:
Nathan FONTEYNE 2026-07-10 11:27:08 +02:00
parent d296494d0e
commit b46c727c85
9 changed files with 149 additions and 23 deletions

View file

@ -348,6 +348,9 @@ async function onAddMyFeed(e) {
const form = e.target;
const label = form.label.value.trim();
const icsUrl = form.icsUrl.value.trim();
const submitBtn = form.querySelector('button[type="submit"]');
submitBtn.disabled = true;
submitBtn.textContent = 'Vérification…';
try {
await api.post('/api/calendar/my-feeds', { label, icsUrl });
form.reset();
@ -357,6 +360,9 @@ async function onAddMyFeed(e) {
buildFilters();
} catch (err) {
showError(err.message);
} finally {
submitBtn.disabled = false;
submitBtn.textContent = '+ Ajouter';
}
}