fix: hide importers section if none is defined

This commit is contained in:
David Larlet 2024-06-14 17:21:09 -04:00
parent ceab5090a7
commit a3afadb677
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD

View file

@ -12,14 +12,16 @@ const TEMPLATE = `
<input type="file" multiple autofocus onchange />
<input type="url" placeholder="${translate('Provide an URL here')}" onchange />
<textarea onchange placeholder="${translate('Paste your data here')}"></textarea>
<div class="importers">
<div class="importers" hidden>
<h4>${translate('Import helpers:')}</h4>
<ul class="grid-container">
</ul>
</div>
</fieldset>
<fieldset class="formbox">
<legend class="counter" data-help="importFormats">${translate('Choose the format')}</legend>
<legend class="counter" data-help="importFormats">${translate(
'Choose the format'
)}</legend>
<select name="format" onchange></select>
</fieldset>
<fieldset id="destination" class="formbox">