@ai-matrx/records-ui 0.115.80 → 0.115.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -40066,12 +40066,18 @@ function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews,
|
|
|
40066
40066
|
await load();
|
|
40067
40067
|
}
|
|
40068
40068
|
async function copySettingsFrom(source, into) {
|
|
40069
|
-
const
|
|
40069
|
+
const copied = settingsToCopy(source, into);
|
|
40070
|
+
const written = await saveViewPatch(client, tableId, into.id, copied);
|
|
40070
40071
|
if (!written.ok) {
|
|
40071
40072
|
setError(written.error);
|
|
40072
40073
|
return;
|
|
40073
40074
|
}
|
|
40074
40075
|
setCopying(false);
|
|
40076
|
+
if (views) {
|
|
40077
|
+
const next = views.map((v) => v.id === into.id ? { ...v, ...copied } : v);
|
|
40078
|
+
setViews(next);
|
|
40079
|
+
onViews?.(next);
|
|
40080
|
+
}
|
|
40075
40081
|
onSettingsCopied?.(into.id);
|
|
40076
40082
|
await load();
|
|
40077
40083
|
notify?.success(`Copied settings from \u201C${source.name}\u201D`);
|