Ask in the page's own dialog, not confirm(), which the iOS app answered Cancel (#462)
Deleting a downloaded file from the iOS app did nothing: no DELETE reached ipx-web or ipx.
WKWebView answers confirm() Cancel without showing it unless the app implements the panel,
which 614f270 does (#453), but only once the app is rebuilt. ask() is a <dialog> of the
page's own, in the top layer, so it opens over a dialog already up (the file menu, Settings)
and leaves it as it was, and Escape answers it alone. Every confirm() in the page and the
admin page goes through it; the tests answer it rather than the browser's dialog, and the
warning before sharing a feed with its key in the address, untested before, now is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,7 +126,7 @@ function signalHead(sg: Signal){
|
||||
async function signalAction(a: string, sg: Signal){
|
||||
if(a==='settings') signalModal(sg);
|
||||
if(a==='rm'){
|
||||
if(!confirm(`Delete the signal ${sg.name}? The items stay in their own feeds.`)) return;
|
||||
if(!await ask(`Delete the signal ${sg.name}? The items stay in their own feeds.`, 'Delete')) return;
|
||||
try{
|
||||
await api(`/api/signals/${sg.id}`,{method:'DELETE'});
|
||||
toast('Deleted'); await loadFeeds(true); selectFeed(':all');
|
||||
|
||||
Reference in New Issue
Block a user