mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-06-05 21:59:15 +02:00
fix
This commit is contained in:
@@ -600,7 +600,7 @@ TODO:
|
|||||||
async function CreateNewPack (event, modalButton, packUrl) {
|
async function CreateNewPack (event, modalButton, packUrl) {
|
||||||
let packData = { stickers: [] };
|
let packData = { stickers: [] };
|
||||||
// if the user specified an URL, try downloading data from there
|
// if the user specified an URL, try downloading data from there
|
||||||
packUrl ||= modalButton.parentElement.querySelector('input[name="packUrl"]').value;
|
packUrl ||= modalButton.parentElement.parentElement.querySelector('input[name="packUrl"]').value;
|
||||||
// TODO: warn if an existing pack is imported from that URL and let the user choose if to continue or cancel
|
// TODO: warn if an existing pack is imported from that URL and let the user choose if to continue or cancel
|
||||||
//if (packUrl && IsAnyPackImportedFrom(packUrl) && await Spacc.ShowModal({ label: Defaults.Strings.mAlreadyImported, action: () => 'continue', actionCancel: () => 'cancel' }) === 'continue') {
|
//if (packUrl && IsAnyPackImportedFrom(packUrl) && await Spacc.ShowModal({ label: Defaults.Strings.mAlreadyImported, action: () => 'continue', actionCancel: () => 'cancel' }) === 'continue') {
|
||||||
// return;
|
// return;
|
||||||
|
Reference in New Issue
Block a user