diff --git a/common/locales/de.json b/common/locales/de.json
index febeb00ca1..1796c9cfc8 100644
--- a/common/locales/de.json
+++ b/common/locales/de.json
@@ -196,6 +196,7 @@
"endDate": "Enddatum",
"endDatetime": "Endzeit",
"nr": "Nr.",
+ "start": "Start",
"time": "Zeitpunkt",
"startDate": "Startdatum",
"startDatetime": "Startzeit"
diff --git a/frontend/src/components/activity/ScheduleEntry.vue b/frontend/src/components/activity/ScheduleEntry.vue
index 650e80b8ae..703449ec0d 100644
--- a/frontend/src/components/activity/ScheduleEntry.vue
+++ b/frontend/src/components/activity/ScheduleEntry.vue
@@ -164,7 +164,7 @@ Displays a single scheduleEntry
@@ -30,7 +29,6 @@
import DialogForm from '@/components/dialog/DialogForm.vue'
import DialogBase from '@/components/dialog/DialogBase.vue'
import DialogActivityForm from './DialogActivityForm.vue'
-import { scheduleEntryRoute } from '@/router.js'
export default {
name: 'DialogActivityEdit',
@@ -38,6 +36,10 @@ export default {
extends: DialogBase,
props: {
scheduleEntry: { type: Object, required: true },
+ hideHeaderFields: {
+ type: Boolean,
+ default: false,
+ },
},
data() {
return {
@@ -46,12 +48,12 @@ export default {
}
},
computed: {
- scheduleEntries() {
- return this.activity.scheduleEntries()
- },
activity() {
return this.scheduleEntry.activity()
},
+ scheduleEntries() {
+ return this.activity.scheduleEntries()
+ },
},
watch: {
showDialog: async function (showDialog) {
@@ -112,6 +114,9 @@ export default {
// patch activity entity
const activityPayload = { ...this.entityData }
+ if (this.hideHeaderFields) {
+ delete activityPayload.location
+ }
delete activityPayload.scheduleEntries
promises.push(this.api.patch(this.entityUri, activityPayload))
@@ -127,7 +132,6 @@ export default {
this.close()
this.$emit('activityUpdated', data)
},
- scheduleEntryRoute,
},
}
diff --git a/frontend/src/components/program/DialogActivityForm.vue b/frontend/src/components/activity/dialog/DialogActivityForm.vue
similarity index 92%
rename from frontend/src/components/program/DialogActivityForm.vue
rename to frontend/src/components/activity/dialog/DialogActivityForm.vue
index 3ca5da3c54..4df1bd559c 100644
--- a/frontend/src/components/program/DialogActivityForm.vue
+++ b/frontend/src/components/activity/dialog/DialogActivityForm.vue
@@ -36,7 +36,7 @@
-
+