Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
project-creation
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
frontend
libraries
project-creation
Commits
47f73ff2
Commit
47f73ff2
authored
4 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Fix some small issues
parent
f0320206
Branches
Topic/983-copyButton
No related tags found
1 merge request
!43
New: Copy metadata from parent
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CreateProject.vue
+14
-14
14 additions, 14 deletions
src/CreateProject.vue
with
14 additions
and
14 deletions
src/CreateProject.vue
+
14
−
14
View file @
47f73ff2
...
...
@@ -52,7 +52,7 @@
<h5>
{{
$t
(
'
activatedImportFromParent
'
)
}}
</h5>
</div>
<div
v-show=
"copyMetadataLabel !== ''"
>
<b-form-group
class=
"mandatory"
label-for=
"CopyData"
label-cols-sm=
"3"
label-align-sm=
"right"
:label=
"copyMetadataLabel"
>
<b-form-group
label-for=
"CopyData"
label-cols-sm=
"3"
label-align-sm=
"right"
:label=
"copyMetadataLabel"
>
<b-button
variant=
"secondary"
id=
"project_copy_button"
...
...
@@ -625,24 +625,24 @@ export default Vue.extend({
this
.
fillForm
(
response
.
data
);
this
.
tranferFormValues
(
this
.
form
,
this
.
initialState
);
this
.
checkSelectedOrganisationLabels
();
});
});
ProjectRoleApi
.
getUserRoles
(
this
.
projectId
,
(
response
:
any
)
=>
{
this
.
checkOwnership
(
response
.
data
);
});
});
}
else
{
// --- get parent information ---
if
(
GuidUtil
.
isValidGuid
(
this
.
parentId
))
{
this
.
setCopyMetadata
(
this
.
parentId
);
}
ActivatedFeaturesApi
.
listAllFeatures
(
(
response
:
any
)
=>
{
response
.
data
.
forEach
((
feature
:
any
)
=>
{
this
.
features
.
push
(
feature
);
});
// --- get parent information ---
if
(
GuidUtil
.
isValidGuid
(
this
.
parentId
))
{
this
.
setCopyMetadata
(
this
.
parentId
);
}
ActivatedFeaturesApi
.
listAllFeatures
(
(
response
:
any
)
=>
{
response
.
data
.
forEach
((
feature
:
any
)
=>
{
this
.
features
.
push
(
feature
);
});
this
.
isNewProject
=
true
;
this
.
tranferFormValues
(
this
.
form
,
this
.
initialState
);
});
this
.
isNewProject
=
true
;
this
.
tranferFormValues
(
this
.
form
,
this
.
initialState
);
}
const
disciplines
=
await
DisciplineApi
.
getDisciplines
((
response
:
any
)
=>
response
.
data
);
for
(
const
discipline
of
disciplines
)
{
...
...
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