This commit is contained in:
+1
-1
@@ -145,7 +145,7 @@
|
||||
<ul id="route-control-local-list" class="route-control-list" aria-live="polite"></ul>
|
||||
</section>
|
||||
<div class="route-control-actions">
|
||||
<button id="editor-button" class="editor-button" type="button" aria-label="Streckenverwaltung öffnen" title="Streckenverwaltung öffnen" aria-haspopup="dialog" aria-expanded="false" aria-controls="editor-dialog">Strecken verwalten</button>
|
||||
<button id="editor-button" class="editor-button" type="button" aria-label="Strecken verwalten" title="Strecken verwalten" aria-haspopup="dialog" aria-expanded="false" aria-controls="editor-dialog">Strecken verwalten</button>
|
||||
<button id="route-control-new" class="editor-primary-button" type="button">Neue lokale Strecke</button>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -506,7 +506,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
|
||||
|
||||
function releasePendingPreview(pending) {
|
||||
const url = pending?.previewUrl;
|
||||
if (!url || !url.startsWith('blob:') || typeof globalThis.URL?.revokeObjectURL !== 'function') return;
|
||||
if (!url?.startsWith('blob:') || typeof globalThis.URL?.revokeObjectURL !== 'function') return;
|
||||
globalThis.URL.revokeObjectURL(url);
|
||||
}
|
||||
|
||||
@@ -663,8 +663,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
|
||||
try {
|
||||
handles = await globalThis.showOpenFilePicker(pickerOptions(kind));
|
||||
} catch (error) {
|
||||
if (error?.name === 'AbortError') return true;
|
||||
return false;
|
||||
return error?.name === 'AbortError';
|
||||
}
|
||||
|
||||
if (kind === 'audio') {
|
||||
|
||||
@@ -19,7 +19,7 @@ test('editor markup and source describe local draft creation instead of immediat
|
||||
const css = await read('public/css/editor.css');
|
||||
const ui = await read('public/js/editor-ui.js');
|
||||
|
||||
assert.match(html, /id="editor-button"[^>]+aria-label="Streckenverwaltung öffnen"/);
|
||||
assert.match(html, /id="editor-button"[^>]+aria-label="Strecken verwalten"/);
|
||||
assert.match(html, /id="route-control-button"[\s\S]*?<img[^>]+src="images\/icons\/route-management\.svg"[^>]+alt=""[^>]*>/);
|
||||
assert.doesNotMatch(html, /class="editor-button-icon"/);
|
||||
assert.match(html, /<dialog id="editor-dialog"/);
|
||||
|
||||
Reference in New Issue
Block a user