Makes these pages a dialog endpoint, keeping you on the Workboard when possible.
Details
- Reviewers
epriestley - Commits
- Restricted Diffusion Commit
rP3fdaf229a70f: Convert Create/Edit Column pages to dialogs
Create a Column, Edit a Column, visit hard page. Test letters in the points field.
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
It seems weird for me for the edit screen to be a dialog, but see inline.
src/applications/project/controller/PhabricatorProjectColumnEditController.php | ||
---|---|---|
142 | Slightly better in modern code is to continue using AphrontFormView, then use appendForm() here. I think there should be no more cases where PHUIFormLayoutView needs to be used directly. | |
144–145 | This one is a little tricky. You probably either want:
Specifically, the current behavior will probably be:
If you remove this, we'll no longer reload in the case above. However, you'll still lose your state when you actually add a column, or when you right-click-open-in-new-window the dialog and then cancel it. To fix these, you need to do a lot more work to preserve state -- all the getPassthroughRequestData() stuff that controllers like PhabricatorProjectDefaultController and PhabricatorProjectColumnHideController do. In this case, because the controller also has real parameters of its own, things get more complex. I think if you just delete this setDisablewWorkflowOnCancel() call for now things should be mostly OK, and I can go hook up all the passthrough stuff later if it's really an issue. |