Skip to content

Commit

Permalink
fix(renterd): files copy metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Dec 19, 2024
1 parent fcc94cb commit 2e9cdd3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-pants-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'renterd': patch
---

Fixed an issue with the copy file metadata action in the file context menu.
5 changes: 5 additions & 0 deletions .changeset/thick-geckos-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siafoundation/renterd-types': minor
---

The object response payload has been updated to v2 response.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export function CopyMetadataMenuItem({ path }: Props) {
disabled={!obj.data}
onSelect={() => {
if (obj.data) {
copyToClipboard(
JSON.stringify(obj.data.object, null, 2),
'object metadata'
)
copyToClipboard(JSON.stringify(obj.data, null, 2), 'object metadata')
}
}}
>
Expand Down
2 changes: 1 addition & 1 deletion libs/renterd-types/src/bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ export type ObjectsResponse = {

export type ObjectParams = { key: string; bucket: string }
export type ObjectPayload = void
export type ObjectResponse = { object: Obj }
export type ObjectResponse = Obj

export type ObjectAddParams = { key: string; bucket: string }
export type ObjectAddPayload = {
Expand Down

0 comments on commit 2e9cdd3

Please sign in to comment.