@gallop.software/studio 0.1.106 → 0.1.107
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/dist/{StudioUI-WUWW66GV.mjs → StudioUI-4HMRUI6W.mjs} +5 -6
- package/dist/StudioUI-4HMRUI6W.mjs.map +1 -0
- package/dist/{StudioUI-4MJ3CHCX.js → StudioUI-GNVTJIVG.js} +5 -6
- package/dist/StudioUI-GNVTJIVG.js.map +1 -0
- package/dist/handlers/index.js +175 -59
- package/dist/handlers/index.js.map +1 -1
- package/dist/handlers/index.mjs +150 -34
- package/dist/handlers/index.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/StudioUI-4MJ3CHCX.js.map +0 -1
- package/dist/StudioUI-WUWW66GV.mjs.map +0 -1
|
@@ -2348,7 +2348,7 @@ function StudioToolbar() {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
}, [setSearchQuery]);
|
|
2350
2350
|
const hasSelection = selectedItems.size > 0;
|
|
2351
|
-
const
|
|
2351
|
+
const hasCloudSelection = hasSelection && Array.from(selectedItems).some((path) => {
|
|
2352
2352
|
const item = fileItems.find((f) => f.path === path);
|
|
2353
2353
|
return item && item.cdnPushed;
|
|
2354
2354
|
});
|
|
@@ -2555,8 +2555,7 @@ function StudioToolbar() {
|
|
|
2555
2555
|
{
|
|
2556
2556
|
css: styles5.btn,
|
|
2557
2557
|
onClick: handleMoveClick,
|
|
2558
|
-
disabled: !hasSelection
|
|
2559
|
-
title: hasCloudOnlySelection ? "Cannot move files that are in the cloud" : void 0,
|
|
2558
|
+
disabled: !hasSelection,
|
|
2560
2559
|
children: [
|
|
2561
2560
|
/* @__PURE__ */ jsx5(MoveIcon, {}),
|
|
2562
2561
|
"Move"
|
|
@@ -2568,8 +2567,8 @@ function StudioToolbar() {
|
|
|
2568
2567
|
{
|
|
2569
2568
|
css: styles5.btn,
|
|
2570
2569
|
onClick: handleSyncClick,
|
|
2571
|
-
disabled: !hasSelection ||
|
|
2572
|
-
title:
|
|
2570
|
+
disabled: !hasSelection || hasCloudSelection,
|
|
2571
|
+
title: hasCloudSelection ? "Selected files are already in the cloud" : void 0,
|
|
2573
2572
|
children: [
|
|
2574
2573
|
/* @__PURE__ */ jsx5(CloudIcon, {}),
|
|
2575
2574
|
"Push CDN"
|
|
@@ -5567,4 +5566,4 @@ export {
|
|
|
5567
5566
|
StudioUI,
|
|
5568
5567
|
StudioUI_default as default
|
|
5569
5568
|
};
|
|
5570
|
-
//# sourceMappingURL=StudioUI-
|
|
5569
|
+
//# sourceMappingURL=StudioUI-4HMRUI6W.mjs.map
|