Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

PLT-8528 removed check that was prevent submit if names were unchanged #660

Merged
merged 5 commits into from
Feb 5, 2018
Merged

PLT-8528 removed check that was prevent submit if names were unchanged #660

merged 5 commits into from
Feb 5, 2018

Conversation

stephenkiers
Copy link
Contributor

Hitting save on the change channel name header without changing the name did nothing.

There was a specific check preventing it from saving. I removed that check, and it now does as expected

Ticket Link

https://mattermost.atlassian.net/browse/PLT-8528

Checklist

  • Ran make check-style to check for style errors (required for all pull requests)

@stephenkiers stephenkiers added the 2: Dev Review Requires review by a core commiter label Jan 24, 2018
@stephenkiers stephenkiers changed the title removed check that was prevent submit if names were unchanged PLT-8528 removed check that was prevent submit if names were unchanged Jan 24, 2018
@crspeller
Copy link
Member

@stephenkiers You have some eslint errors.

@@ -189,7 +187,7 @@ export class RenameChannelModal extends React.PureComponent {

this.setState(state);

if (state.invalid || (oldName === channel.name && oldDisplayName === channel.display_name)) {
Copy link
Member

Choose a reason for hiding this comment

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

If the names didn't change, can we exit early without even sending a request to the server?

Copy link
Contributor Author

@stephenkiers stephenkiers Feb 1, 2018

Choose a reason for hiding this comment

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

Great point. Fixed

@hmhealey hmhealey self-assigned this Jan 26, 2018
@hmhealey hmhealey added the Awaiting Submitter Action Blocked on the author label Jan 31, 2018
@stephenkiers stephenkiers removed the Awaiting Submitter Action Blocked on the author label Feb 1, 2018
@hmhealey hmhealey merged commit 4ffc278 into mattermost:master Feb 5, 2018
@hmhealey hmhealey removed their assignment Feb 5, 2018
@hmhealey hmhealey removed the 2: Dev Review Requires review by a core commiter label Feb 5, 2018
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Feb 6, 2018
@lindalumitchell lindalumitchell added the Tests/Done Release tests have been written label Feb 6, 2018
hmhealey pushed a commit that referenced this pull request Aug 28, 2020
- No additions or deletions, just a few homepage and copyright year updates
- Normalizing to the automation-friendly format so future diffs will be smaller.
hmhealey pushed a commit that referenced this pull request Mar 17, 2021
- No additions or deletions, just a few homepage and copyright year updates
- Normalizing to the automation-friendly format so future diffs will be smaller.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation Tests/Done Release tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants