From 786404a8a692448b04fd8df5dbca8013631a0abd Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 9 Mar 2021 17:50:09 +0100 Subject: adding episodes to projects --- .../frontend/app/views/project/components/project.form.js | 7 +++++-- .../frontend/app/views/project/components/project.menu.js | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'animism-align/frontend/app/views/project/components') diff --git a/animism-align/frontend/app/views/project/components/project.form.js b/animism-align/frontend/app/views/project/components/project.form.js index f4d1749..0393d81 100644 --- a/animism-align/frontend/app/views/project/components/project.form.js +++ b/animism-align/frontend/app/views/project/components/project.form.js @@ -110,7 +110,7 @@ export default class ProjectForm extends Component { } const { isNew, onSubmit } = this.props const { data } = this.state - const requiredKeys = "title is_live".split(" ") + const requiredKeys = "title".split(" ") const validKeys = "title is_live settings".split(" ") const validData = validKeys.reduce((a,b) => { a[b] = data[b]; return a }, {}) if (!data.title) { @@ -173,21 +173,24 @@ export default class ProjectForm extends Component { title="Base URL" name="base_href" data={data.settings} + placeholder="https://animism.e-flux.com" onChange={this.handleSettingsChangeEvent} autoComplete="off" /> diff --git a/animism-align/frontend/app/views/project/components/project.menu.js b/animism-align/frontend/app/views/project/components/project.menu.js index a29a451..8e3abea 100644 --- a/animism-align/frontend/app/views/project/components/project.menu.js +++ b/animism-align/frontend/app/views/project/components/project.menu.js @@ -28,7 +28,7 @@ const ProjectIndexMenu = () => ([ ]) const ProjectShowMenu = connect(mapStateToProps)((props) => ([ - , + , , { const { res: project } = props.project.show @@ -41,11 +41,11 @@ const ProjectShowMenu = connect(mapStateToProps)((props) => ([ ])) const ProjectNewMenu = (props) => ([ - , + , ]) const ProjectEditMenu = connect(mapStateToProps)((props) => ([ - , + , { const { res: project } = props.project.show if (confirm("Really delete this project?")) { -- cgit v1.2.3-70-g09d2