Skip to content
Snippets Groups Projects
Commit 47f73ff2 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix some small issues

parent f0320206
No related tags found
1 merge request!43New: Copy metadata from parent
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment