This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Commit 47002f5
committed
Removed DefaultRepositoryName
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 #2791 parent 2f0753f commit 47002f5
File tree
4 files changed
+1
-17
lines changed- src
- GitHub.App
- SampleData
- ViewModels
- GitHub.Exports.Reactive/ViewModels
- GitHub.VisualStudio/UI/Views/Controls
4 files changed
+1
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | 235 | | |
244 | 236 | | |
245 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
0 commit comments