mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-22 16:28:32 +00:00
fix: s3 copy overwrite/sync buttons (#1983)
The copy overwrite/sync buttons were not appearing on s3 do to s3 operations having different error messages. This accounts for those so the options will be available with those files as well.
This commit is contained in:
parent
e15d38a795
commit
7c25ebfcb1
1 changed files with 3 additions and 2 deletions
|
|
@ -903,8 +903,9 @@ function DirectoryPreview({ model }: DirectoryPreviewProps) {
|
|||
console.log("copy failed:", e);
|
||||
const copyError = `${e}`;
|
||||
const allowRetry =
|
||||
copyError.endsWith("overwrite not specified") ||
|
||||
copyError.endsWith("neither overwrite nor merge specified");
|
||||
copyError.includes("overwrite not specified") ||
|
||||
copyError.includes("neither overwrite nor merge specified") ||
|
||||
copyError.includes("neither merge nor overwrite specified");
|
||||
const copyStatus: FileCopyStatus = {
|
||||
copyError,
|
||||
copyData: data,
|
||||
|
|
|
|||
Loading…
Reference in a new issue