Skip to content

Don't render form/save button when plugin doesn't have project conf form#5453

Merged
kjlundsgaard merged 4 commits into
masterfrom
remove-save-changes-button
May 26, 2017
Merged

Don't render form/save button when plugin doesn't have project conf form#5453
kjlundsgaard merged 4 commits into
masterfrom
remove-save-changes-button

Conversation

@kjlundsgaard

Copy link
Copy Markdown

Makes the freight plugin not show a disabled "Save Changes" button.
@macqueen

@kjlundsgaard kjlundsgaard requested a review from macqueen May 25, 2017 20:41

let data = this.state.rawData;

if (!this.props.hasConfigOptions) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason doing something like if (!(this.state.fieldList || []).length) { won't work here? i think that should only have actual form fields that need to be configured

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that works - changed

Katie Lundsgaard added 2 commits May 25, 2017 16:50
@kjlundsgaard kjlundsgaard merged commit f02da0b into master May 26, 2017
@kjlundsgaard kjlundsgaard deleted the remove-save-changes-button branch May 26, 2017 17:10
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants