Merge branch 'hotfix/edit-portfolio' into develop
This commit is contained in:
commit
bf3d2c7b2a
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<project-form
|
<project-form
|
||||||
:project="project"
|
:project="project"
|
||||||
|
title="Projekt bearbeiten"
|
||||||
@save="updateProject"
|
@save="updateProject"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -24,7 +25,7 @@
|
||||||
variables: {
|
variables: {
|
||||||
input: {
|
input: {
|
||||||
project: {
|
project: {
|
||||||
id: project.id,
|
slug: project.slug,
|
||||||
title: project.title,
|
title: project.title,
|
||||||
description: project.description,
|
description: project.description,
|
||||||
objectives: project.objectives
|
objectives: project.objectives
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<page-form
|
<page-form
|
||||||
title="Neues Projekt"
|
:title="title"
|
||||||
@save="$emit('save', localProject)"
|
@save="$emit('save', localProject)"
|
||||||
>
|
>
|
||||||
<page-form-input
|
<page-form-input
|
||||||
|
|
@ -38,7 +38,16 @@
|
||||||
import PageFormInput from '@/components/page-form/PageFormInput';
|
import PageFormInput from '@/components/page-form/PageFormInput';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['project'],
|
props: {
|
||||||
|
project: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {}
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: "Neues Projekt"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
PageForm,
|
PageForm,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
|
import PROJECT_QUERY from '@/graphql/gql/queries/projectQuery.gql';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['id'],
|
props: ['slug'],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
EditProject
|
EditProject
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
query: PROJECT_QUERY,
|
query: PROJECT_QUERY,
|
||||||
variables() {
|
variables() {
|
||||||
return {
|
return {
|
||||||
id: this.id
|
slug: this.slug
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue