mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
update: ics utl verification, custom in app name
This commit is contained in:
parent
d296494d0e
commit
b46c727c85
9 changed files with 149 additions and 23 deletions
|
|
@ -95,11 +95,16 @@ async function onAddFeed(e, userId) {
|
|||
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/people/${userId}/feeds`, { label, icsUrl });
|
||||
await loadCalendarUsers();
|
||||
} catch (err) {
|
||||
showError(err.message);
|
||||
submitBtn.disabled = false;
|
||||
submitBtn.textContent = '+ Ajouter';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue