diff --git a/client/src/components/portfolio/EditProject.vue b/client/src/components/portfolio/EditProject.vue
index cc0ec956..81d6b13c 100644
--- a/client/src/components/portfolio/EditProject.vue
+++ b/client/src/components/portfolio/EditProject.vue
@@ -1,6 +1,7 @@
@@ -24,7 +25,7 @@
variables: {
input: {
project: {
- id: project.id,
+ slug: project.slug,
title: project.title,
description: project.description,
objectives: project.objectives
diff --git a/client/src/components/portfolio/ProjectForm.vue b/client/src/components/portfolio/ProjectForm.vue
index 8410d4c8..4286d099 100644
--- a/client/src/components/portfolio/ProjectForm.vue
+++ b/client/src/components/portfolio/ProjectForm.vue
@@ -1,6 +1,6 @@
{}
+ },
+ title: {
+ type: String,
+ default: "Neues Projekt"
+ }
+ },
components: {
PageForm,
diff --git a/client/src/pages/portfolio/editProject.vue b/client/src/pages/portfolio/editProject.vue
index 4dfc19b3..af4b2232 100644
--- a/client/src/pages/portfolio/editProject.vue
+++ b/client/src/pages/portfolio/editProject.vue
@@ -14,7 +14,7 @@
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
export default {
- props: ['id'],
+ props: ['slug'],
components: {
EditProject
@@ -31,7 +31,7 @@
query: PROJECT_QUERY,
variables() {
return {
- id: this.id
+ slug: this.slug
};
}
}