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
!40
Resolve "Implement json schema parser"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Implement json schema parser"
feature/38-implement-json-schema-parser
into
development
Overview
0
Commits
3
Pipelines
0
Changes
10
Merged
Daniel Göbel
requested to merge
feature/38-implement-json-schema-parser
into
development
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
10
Expand
Closes
#38 (closed)
0
0
Merge request reports
Viewing commit
463356b9
Prev
Next
Show latest version
10 files
+
581
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
Verified
463356b9
Add parser to render basic HTML form for parameter schema
· 463356b9
Daniel Göbel
authored
2 years ago
#38
src/components/object-storage/modals/CreateBucketModal.vue
+
2
−
6
Options
<
script
setup
lang=
"ts"
>
import
type
{
BucketIn
}
from
"
@/client/s3proxy
"
;
import
{
reactive
,
onMounted
,
computed
,
ref
}
from
"
vue
"
;
import
{
reactive
,
onMounted
,
ref
}
from
"
vue
"
;
import
BootstrapModal
from
"
@/components/modals/BootstrapModal.vue
"
;
import
{
useRouter
}
from
"
vue-router
"
;
import
{
Modal
}
from
"
bootstrap
"
;
@@ -30,17 +30,13 @@ onMounted(() => {
createBucketModal
=
new
Modal
(
"
#
"
+
props
.
modalID
);
});
const
formValid
=
computed
<
boolean
>
(
()
=>
bucketCreateForm
.
value
?.
checkValidity
()
??
false
);
function
createBucket
()
{
formState
.
validated
=
true
;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
formState
.
bucketNameTaken
=
false
;
bucket
.
description
=
bucket
.
description
.
trim
();
bucket
.
name
=
bucket
.
name
.
trim
();
if
(
formValid
.
value
)
{
if
(
bucketCreateForm
.
value
?.
checkValidity
()
)
{
formState
.
loading
=
true
;
bucketRepository
.
createBucket
(
bucket
,
Loading