Merge branch 'hotfix/edit-portfolio' into develop
This commit is contained in:
commit
bf3d2c7b2a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue