updated export/import form
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
|
||||
try {
|
||||
await ApiClient.collections.import(newCollections);
|
||||
addSuccessToast("Successfully imported the provided collections.");
|
||||
addSuccessToast("Successfully imported the collections configuration.");
|
||||
dispatch("submit");
|
||||
} catch (err) {
|
||||
ApiClient.errorResponseHandler(err);
|
||||
@@ -162,12 +162,12 @@
|
||||
</div>
|
||||
<div class="col-6 p-b-10">
|
||||
<code class="code-block">
|
||||
{@html diff(pair.old, pair.new, [window.DIFF_DELETE, window.DIFF_EQUAL])}
|
||||
{@html diff(pair.old, pair.new, [window.DIFF_DELETE, window.DIFF_EQUAL]) || "N/A"}
|
||||
</code>
|
||||
</div>
|
||||
<div class="col-6 p-b-10">
|
||||
<code class="code-block">
|
||||
{@html diff(pair.old, pair.new, [window.DIFF_INSERT, window.DIFF_EQUAL])}
|
||||
{@html diff(pair.old, pair.new, [window.DIFF_INSERT, window.DIFF_EQUAL]) || "N/A"}
|
||||
</code>
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
function copy() {
|
||||
CommonHelper.copyToClipboard(schema);
|
||||
addInfoToast("The schema was copied to your clipboard!", 3000);
|
||||
addInfoToast("The collections list was copied to your clipboard!", 3000);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
{:else}
|
||||
<div class="content txt-xl m-b-base">
|
||||
<p>
|
||||
Below you'll find your current collections schema that you could import later in
|
||||
Below you'll find your current collections configuration that you could import in
|
||||
another PocketBase environment.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
await tick();
|
||||
|
||||
if (!newCollections.length) {
|
||||
addErrorToast("Invalid collections list.");
|
||||
addErrorToast("Invalid collections configuration.");
|
||||
clear();
|
||||
}
|
||||
};
|
||||
@@ -177,7 +177,7 @@
|
||||
/>
|
||||
|
||||
<p>
|
||||
Paste below the collections you want to import or
|
||||
Paste below the collections configuration you want to import or
|
||||
<button
|
||||
class="btn btn-outline btn-sm m-l-5"
|
||||
class:btn-loading={isLoadingFile}
|
||||
@@ -202,7 +202,7 @@
|
||||
/>
|
||||
|
||||
{#if !!schemas && !isValid}
|
||||
<div class="help-block help-block-error">Invalid collections schemas.</div>
|
||||
<div class="help-block help-block-error">Invalid collections configuration.</div>
|
||||
{/if}
|
||||
</Field>
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
<i class="ri-information-line" />
|
||||
</div>
|
||||
<div class="content">
|
||||
<string>Your collections structure is already up-to-date!</string>
|
||||
<string>Your collections configuration is already up-to-date!</string>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user