Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computational Metagenomics
CloWM
CloWM UI
Merge requests
!12
Add direct S3 interaction
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add direct S3 interaction
feature/s3-interaction
into
development
Overview
0
Commits
13
Pipelines
0
Changes
1
Merged
Daniel Göbel
requested to merge
feature/s3-interaction
into
development
2 years ago
Overview
0
Commits
13
Pipelines
0
Changes
1
Expand
Closes
#15 (closed)
Edited
2 years ago
by
Daniel Göbel
0
0
Merge request reports
Viewing commit
2544498c
Prev
Next
Show latest version
1 file
+
4
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
2544498c
Enable copying object to source folder
· 2544498c
Daniel Göbel
authored
2 years ago
#15
src/components/Modals/CopyObjectModal.vue
+
4
−
11
Options
@@ -4,8 +4,7 @@ import { CopyObjectCommand } from "@aws-sdk/client-s3";
import
BootstrapModal
from
"
@/components/Modals/BootstrapModal.vue
"
;
import
type
{
BucketOut
}
from
"
@/client
"
;
import
{
Modal
,
Toast
}
from
"
bootstrap
"
;
import
{
onMounted
,
reactive
,
watch
,
computed
}
from
"
vue
"
;
import
type
{
ComputedRef
}
from
"
vue
"
;
import
{
onMounted
,
reactive
,
watch
}
from
"
vue
"
;
const
props
=
defineProps
<
{
modalID
:
string
;
@@ -31,15 +30,9 @@ let copyModal: Modal | null = null;
let
successToast
:
Toast
|
null
=
null
;
let
errorToast
:
Toast
|
null
=
null
;
const
sourceFilteredBuckets
:
ComputedRef
<
BucketOut
[]
>
=
computed
(()
=>
{
return
props
.
availableBuckets
.
filter
(
(
bucket
)
=>
bucket
.
name
!==
props
.
sourceBucketName
);
});
function
getFileName
(
key
:
string
):
string
{
const
spli
i
tedKey
=
key
.
split
(
"
/
"
);
return
spli
i
tedKey
[
spli
i
tedKey
.
length
-
1
];
const
spli
t
tedKey
=
key
.
split
(
"
/
"
);
return
spli
t
tedKey
[
spli
t
tedKey
.
length
-
1
];
}
function
copyObject
()
{
@@ -159,7 +152,7 @@ onMounted(() => {
>
<option
disabled
selected
>
Select one...
</option>
<option
v-for=
"bucket in
sourceFiltered
Buckets"
v-for=
"bucket in
props.available
Buckets"
:key=
"bucket.name"
:value=
"bucket.name"
>
Loading