Community
Participate
Working Groups
There are cases in the UI where we need to prompt for a directory location on the server. We should have a common dialog for this. The case I have is: - file move/copy prompt for a target (for example, if the path you want is not visible so you can't use the menus or a future drag and drop) But I suspect we might have other needs...
Another case is to select the Git clone location on the server to link it to the user's workspace.
I have a use case for this as well: when creating a site configuration, you often want to mount a directory path from your workspace to some location on your virtual host.
Nayna is looking for some M7 work and this seems like a good, independent task.
Nayna, it would be good to get this in early in M8 so that consumers have time to adopt it and give feedback before final release.
Any news?
I believe Nayna is planning to release something within a day or so. Nayna, it would be good to keep us posted here...
fixed. The basic functionality is there, we can open new bugs for problems or enhancements. Bugs can be assigned to Nayna but please cc: me (or just open to the inbox and i'll triage). For now the dialog opens unexpanded but will remember the expansions afterward. Sample usage: var dialog = new widgets.DirectoryPrompterDialog({ title: "Choose a Folder", serviceRegistry: serviceRegistry, fileClient: fileClient, func: function(targetFolder) { // targetFolder is the model item if (targetFolder && targetFolder.Location) { // do your stuff } } }); dialog.startup(); dialog.show();