Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MVP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SO
OC
MVP
Commits
797cbae5
Commit
797cbae5
authored
8 months ago
by
simon.mellerin
Browse files
Options
Downloads
Patches
Plain Diff
community/[community].datasets/new.vue - factorize onMoutend
parent
603bb7f3
Branches
Branches containing commit
No related tags found
1 merge request
!34
#22 - Dataset step 1 - add optional fields + FAIR
Pipeline
#10376
passed
8 months ago
Stage: test
Stage: build
Stage: deploy
Stage: teardown
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/community/[community].datasets/new.vue
+14
-20
14 additions, 20 deletions
src/pages/community/[community].datasets/new.vue
with
14 additions
and
20 deletions
src/pages/community/[community].datasets/new.vue
+
14
−
20
View file @
797cbae5
...
@@ -102,33 +102,27 @@ const { data: community } = useCommunityData()
...
@@ -102,33 +102,27 @@ const { data: community } = useCommunityData()
const
datasetValues
:
Partial
<
OcDataset
>
=
{}
const
datasetValues
:
Partial
<
OcDataset
>
=
{}
const
frequencyList
=
ref
<
OcVocabulary
[]
>
([])
const
frequencyList
=
ref
<
OcVocabulary
[]
>
([])
const
statusList
=
ref
<
OcVocabulary
[]
>
([])
const
conformsToList
=
ref
<
OcVocabulary
[]
>
([])
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
const
{
graph
}
=
await
getVocabulariesList
(
getVocabulariesList
(
datasetsMetadata
.
accrualPeriodicity
.
vocabularies
??
[],
datasetsMetadata
.
accrualPeriodicity
.
vocabularies
??
[],
accountStore
.
auth
accountStore
.
auth
)
).
then
(({
graph
})
=>
{
frequencyList
.
value
=
graph
frequencyList
.
value
=
graph
})
})
const
statusList
=
ref
<
OcVocabulary
[]
>
([])
getVocabulariesList
(
datasetsMetadata
.
status
.
vocabularies
??
[],
accountStore
.
auth
).
then
(
onMounted
(
async
()
=>
{
({
graph
})
=>
{
const
{
graph
}
=
await
getVocabulariesList
(
statusList
.
value
=
graph
datasetsMetadata
.
status
.
vocabularies
??
[],
}
accountStore
.
auth
)
)
statusList
.
value
=
graph
getVocabulariesList
(
datasetsMetadata
.
license
.
vocabularies
??
[],
accountStore
.
auth
).
then
(
})
({
graph
})
=>
{
licenseList
.
value
=
graph
const
conformsToList
=
ref
<
OcVocabulary
[]
>
([])
}
onMounted
(
async
()
=>
{
const
{
graph
}
=
await
getVocabulariesList
(
datasetsMetadata
.
license
.
vocabularies
??
[],
accountStore
.
auth
)
)
licenseList
.
value
=
graph
})
})
const
licenseList
=
ref
<
OcVocabulary
[]
>
([])
const
licenseList
=
ref
<
OcVocabulary
[]
>
([])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment