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>
|
<ul id="route-control-local-list" class="route-control-list" aria-live="polite"></ul>
|
||||||
</section>
|
</section>
|
||||||
<div class="route-control-actions">
|
<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>
|
<button id="route-control-new" class="editor-primary-button" type="button">Neue lokale Strecke</button>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
|
|||||||
|
|
||||||
function releasePendingPreview(pending) {
|
function releasePendingPreview(pending) {
|
||||||
const url = pending?.previewUrl;
|
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);
|
globalThis.URL.revokeObjectURL(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -663,8 +663,7 @@ globalThis.Wegwichtel = globalThis.Wegwichtel || {};
|
|||||||
try {
|
try {
|
||||||
handles = await globalThis.showOpenFilePicker(pickerOptions(kind));
|
handles = await globalThis.showOpenFilePicker(pickerOptions(kind));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error?.name === 'AbortError') return true;
|
return error?.name === 'AbortError';
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kind === 'audio') {
|
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 css = await read('public/css/editor.css');
|
||||||
const ui = await read('public/js/editor-ui.js');
|
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.match(html, /id="route-control-button"[\s\S]*?<img[^>]+src="images\/icons\/route-management\.svg"[^>]+alt=""[^>]*>/);
|
||||||
assert.doesNotMatch(html, /class="editor-button-icon"/);
|
assert.doesNotMatch(html, /class="editor-button-icon"/);
|
||||||
assert.match(html, /<dialog id="editor-dialog"/);
|
assert.match(html, /<dialog id="editor-dialog"/);
|
||||||
|
|||||||
Reference in New Issue
Block a user