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
!143
Resolve "Add UI for ownership tranfers"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add UI for ownership tranfers"
feature/145-add-ui-for-ownership-tranfers
into
main
Overview
0
Commits
3
Pipelines
0
Changes
6
Merged
Daniel Göbel
requested to merge
feature/145-add-ui-for-ownership-tranfers
into
main
7 months ago
Overview
0
Commits
3
Pipelines
0
Changes
6
Expand
Closes
#145 (closed)
0
0
Merge request reports
Viewing commit
8fd66e4e
Prev
Next
Show latest version
6 files
+
229
−
101
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
Verified
8fd66e4e
Add UI to manage OTRS for resources
· 8fd66e4e
Daniel Göbel
authored
7 months ago
#145
src/components/modals/CreateOtrModal.vue
+
7
−
7
Options
@@ -44,22 +44,22 @@ const formState = reactive<{
});
const
targetType
=
computed
<
OwnershipTypeEnum
>
(()
=>
{
if
(
is
Bucket
(
props
.
target
))
{
return
OwnershipTypeEnum
.
BUCKET
;
if
(
is
Resource
(
props
.
target
))
{
return
OwnershipTypeEnum
.
RESOURCE
;
}
else
if
(
isWorkflow
(
props
.
target
))
{
return
OwnershipTypeEnum
.
WORKFLOW
;
}
return
OwnershipTypeEnum
.
RESOURCE
;
return
OwnershipTypeEnum
.
BUCKET
;
});
const
targetName
=
computed
<
string
>
(()
=>
props
.
target
.
name
);
const
targetId
=
computed
<
string
>
(()
=>
{
if
(
is
Bucket
(
props
.
target
))
{
return
props
.
target
.
name
;
if
(
is
Resource
(
props
.
target
))
{
return
props
.
target
.
resource_id
;
}
else
if
(
isWorkflow
(
props
.
target
))
{
return
props
.
target
.
workflow_id
;
}
else
if
(
is
Resource
(
props
.
target
))
{
return
props
.
target
.
resource_id
;
}
else
if
(
is
Bucket
(
props
.
target
))
{
return
props
.
target
.
name
;
}
return
""
;
});
Loading