@gallop.software/studio 0.1.112 → 0.1.114

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.
@@ -2396,9 +2396,9 @@ function StudioToolbar() {
2396
2396
  }
2397
2397
  }, [setSearchQuery]);
2398
2398
  const hasSelection = selectedItems.size > 0;
2399
- const hasCloudSelection = hasSelection && Array.from(selectedItems).some((path) => {
2399
+ const hasR2Selection = hasSelection && Array.from(selectedItems).some((path) => {
2400
2400
  const item = fileItems.find((f) => f.path === path);
2401
- return item && item.cdnPushed;
2401
+ return item && item.cdnPushed && !item.isRemote;
2402
2402
  });
2403
2403
  const selectedPaths = Array.from(selectedItems);
2404
2404
  const singleFolderSelected = selectedPaths.length === 1 && !selectedPaths[0].includes(".");
@@ -2615,8 +2615,8 @@ function StudioToolbar() {
2615
2615
  {
2616
2616
  css: styles5.btn,
2617
2617
  onClick: handleSyncClick,
2618
- disabled: !hasSelection || hasCloudSelection,
2619
- title: hasCloudSelection ? "Selected files are already in the cloud" : void 0,
2618
+ disabled: !hasSelection || hasR2Selection,
2619
+ title: hasR2Selection ? "Selected files are already in R2" : void 0,
2620
2620
  children: [
2621
2621
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CloudIcon, {}),
2622
2622
  "Push CDN"
@@ -4678,7 +4678,7 @@ function StudioDetailView() {
4678
4678
  onClick: () => setShowMoveModal(true),
4679
4679
  disabled: moving,
4680
4680
  children: [
4681
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" }) }),
4681
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" }) }),
4682
4682
  moving ? "Moving..." : "Move"
4683
4683
  ]
4684
4684
  }
@@ -4688,8 +4688,8 @@ function StudioDetailView() {
4688
4688
  {
4689
4689
  css: styles8.actionBtn,
4690
4690
  onClick: handleSync,
4691
- disabled: pushing || focusedItem.cdnPushed,
4692
- title: focusedItem.cdnPushed ? "Already in cloud" : void 0,
4691
+ disabled: pushing || focusedItem.cdnPushed && !focusedItem.isRemote,
4692
+ title: focusedItem.cdnPushed && !focusedItem.isRemote ? "Already in R2" : void 0,
4693
4693
  children: [
4694
4694
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" }) }),
4695
4695
  pushing ? "Pushing..." : "Push to CDN"
@@ -4701,8 +4701,6 @@ function StudioDetailView() {
4701
4701
  {
4702
4702
  css: styles8.actionBtn,
4703
4703
  onClick: () => setShowProcessConfirm(true),
4704
- disabled: focusedItem.isRemote,
4705
- title: focusedItem.isRemote ? "Cannot process remote images" : void 0,
4706
4704
  children: [
4707
4705
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { css: styles8.actionIcon, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" }) }),
4708
4706
  "Process Image"
@@ -5682,4 +5680,4 @@ var StudioUI_default = StudioUI;
5682
5680
 
5683
5681
 
5684
5682
  exports.StudioUI = StudioUI; exports.default = StudioUI_default;
5685
- //# sourceMappingURL=StudioUI-BKY73ZNB.js.map
5683
+ //# sourceMappingURL=StudioUI-M3QU6MDI.js.map