Merge branch 'hotfix/edit-portfolio' into develop

This commit is contained in:
Ramon Wenger 2022-03-21 19:27:25 +01:00
commit bf3d2c7b2a
3 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,7 @@
<template>
<project-form
:project="project"
title="Projekt bearbeiten"
@save="updateProject"
/>
</template>
@ -24,7 +25,7 @@
variables: {
input: {
project: {
id: project.id,
slug: project.slug,
title: project.title,
description: project.description,
objectives: project.objectives

View File

@ -1,6 +1,6 @@
<template>
<page-form
title="Neues Projekt"
:title="title"
@save="$emit('save', localProject)"
>
<page-form-input
@ -38,7 +38,16 @@
import PageFormInput from '@/components/page-form/PageFormInput';
export default {
props: ['project'],
props: {
project: {
type: Object,
default: () => {}
},
title: {
type: String,
default: "Neues Projekt"
}
},
components: {
PageForm,

View File

@ -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
};
}
}