Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Removed DefaultRepositoryName #337

Merged
merged 1 commit into from Jun 2, 2016
Merged

Conversation

grokys
Copy link
Contributor

@grokys grokys commented May 30, 2016

From IRepositoryPublishViewModel. Seems to not be needed and was causing #279.

The default repository name was being placed directly into RepositoryPublishControl.nameText in the control which meant:

  • it was only written to RepositoryName when the user clicked on the nameText control
  • which meant that RepositoryName was up until that point null
  • which meant that the validation for it was failing
  • which meant the "Publish" button was disabled.

This commit just sets the RepositoryName to the default in the VM ctor meaning that that name gets immediately validated. DefaultRepositoryName didn't seem to be used anywhere else, so I removed it.

cc: @haacked for a sanity check because it looks like you wrote this.

Fixes #279

From `IRepositoryPublishViewModel`. Seems to not be needed and was
causing #279.

The default repository name was being placed directly into
`RepositoryPublishControl.nameText` in the control which meant:

- it was only written to `RepositoryName` when the user clicked on the
`nameText` control
- which meant that `RepositoryName` was up until that point null
- which meant that the validation for it was failing
- which meant the "Publish" button was disabled.

This commit just sets the `RepositoryName` to the default in the VM ctor
meaning that that name gets immediately validated.
`DefaultRepositoryName` didn't seem to be used anywhere else, so I
removed it.

cc: @haacked for a sanity check because it looks like you wrote this.

Fixes #279
@shana
Copy link
Contributor

shana commented Jun 2, 2016

Yup, this looks very sane! :shipit:

@shana shana merged commit dc2ae64 into master Jun 2, 2016
@shana shana deleted the fixes/279-publish-button-disabled branch June 2, 2016 10:31
@shana shana added this to the 1.0.99.6 milestone Jun 6, 2016
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.

None yet

2 participants