Fix i18n, make dialog wide
This commit is contained in:
parent
e93bc49b36
commit
91061c1d55
|
@ -10539,7 +10539,7 @@ jQuery(async function () {
|
|||
const html = await renderTemplateAsync('importCharacters');
|
||||
|
||||
/** @type {string?} */
|
||||
const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 });
|
||||
const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wide: true, okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 });
|
||||
|
||||
if (!input) {
|
||||
console.debug('Custom content import cancelled');
|
||||
|
@ -10550,7 +10550,7 @@ jQuery(async function () {
|
|||
const inputs = input.split('\n').map(x => x.trim()).filter(x => x.length > 0);
|
||||
|
||||
for (const url of inputs) {
|
||||
var request;
|
||||
let request;
|
||||
|
||||
if (isValidUrl(url)) {
|
||||
console.debug('Custom content import started for URL: ', url);
|
||||
|
|
|
@ -12,4 +12,14 @@
|
|||
<li><span data-i18n="char_import_8">RisuRealm Character (Direct Link)</span><br><span data-i18n="char_import_example">Example:</span> <tt>https://realm.risuai.net/character/3ca54c71-6efe-46a2-b9d0-4f62df23d712</tt></li>
|
||||
</ul>
|
||||
</div>
|
||||
<small data-i18n="Supports importing multiple characters. Write each URL or ID into a new line. (<code>Shift</code> + <code>Enter</code> to start a new line)">Supports importing multiple characters. Write each URL or ID into a new line. (<code>Shift</code> + <code>Enter</code> to start a new line)</small>
|
||||
<small>
|
||||
<span data-i18n="Supports importing multiple characters.">
|
||||
Supports importing multiple characters.
|
||||
</span>
|
||||
<span data-i18n="Write each URL or ID into a new line.">
|
||||
Write each URL or ID into a new line.
|
||||
</span>
|
||||
<span data-i18n="(Shift + Enter to start a new line)">
|
||||
(Shift + Enter to start a new line)
|
||||
</span>
|
||||
</small>
|
||||
|
|
Loading…
Reference in New Issue