style: tighten import copy
This commit is contained in:
@@ -819,7 +819,7 @@ function htmlPage(): string {
|
||||
<path d="M3 12.5h10" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</span>
|
||||
<span>Import share</span>
|
||||
<span>Import</span>
|
||||
</button>
|
||||
<button class="danger" id="cancel-share" type="button" disabled>
|
||||
<span class="button-icon" aria-hidden="true">
|
||||
@@ -827,12 +827,12 @@ function htmlPage(): string {
|
||||
<path d="M4 4l8 8M12 4l-8 8" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</span>
|
||||
<span>Cancel</span>
|
||||
<span>Stop</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="status-row">
|
||||
<span class="spinner" id="activity-spinner" aria-hidden="true"></span>
|
||||
<div class="status" id="share-status">Ready to import a share.</div>
|
||||
<div class="status" id="share-status">Ready to import.</div>
|
||||
</div>
|
||||
<div class="progress" aria-label="Loading progress">
|
||||
<div class="progress-bar" aria-hidden="true">
|
||||
@@ -1801,7 +1801,7 @@ function htmlPage(): string {
|
||||
try {
|
||||
clearObjectUrls();
|
||||
clearGallery();
|
||||
updateStatus("Loading share...");
|
||||
updateStatus("Importing...");
|
||||
const listing = await loadShareListing(shareUrl.value, controller.signal);
|
||||
|
||||
if (!listing.length) {
|
||||
@@ -1836,15 +1836,11 @@ function htmlPage(): string {
|
||||
setProgress(
|
||||
processed,
|
||||
listing.length,
|
||||
"loaded " + loaded + ", skipped " + skipped
|
||||
);
|
||||
updateStatus(
|
||||
"Import running: " +
|
||||
loaded +
|
||||
" images shown, " +
|
||||
skipped +
|
||||
" skipped."
|
||||
);
|
||||
"processed " + processed + " / " + listing.length
|
||||
);
|
||||
updateStatus(
|
||||
"Importing: " + loaded + " shown, " + skipped + " skipped."
|
||||
);
|
||||
}
|
||||
|
||||
if (!loaded) {
|
||||
@@ -1852,13 +1848,9 @@ function htmlPage(): string {
|
||||
}
|
||||
|
||||
updateStatus(
|
||||
"Nextcloud import complete: " +
|
||||
loaded +
|
||||
" images imported" +
|
||||
(skipped ? ", " + skipped + " skipped" : "") +
|
||||
"."
|
||||
"Import complete: " + loaded + " images imported" + (skipped ? ", " + skipped + " skipped" : "") + "."
|
||||
);
|
||||
setProgress(listing.length, listing.length, "done");
|
||||
setProgress(listing.length, listing.length, "complete");
|
||||
} catch (error) {
|
||||
if (controller.signal.aborted) {
|
||||
updateStatus("Import canceled.");
|
||||
@@ -1898,7 +1890,7 @@ function htmlPage(): string {
|
||||
});
|
||||
|
||||
clearGallery();
|
||||
updateStatus("Ready to import a share.");
|
||||
updateStatus("Ready to import.");
|
||||
</script>
|
||||
</body>
|
||||
</html>`;
|
||||
|
||||
Reference in New Issue
Block a user