Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

$dialog service: Separate messageBox into its own service #175

Closed
petebacondarwin opened this issue Feb 28, 2013 · 4 comments
Closed

$dialog service: Separate messageBox into its own service #175

petebacondarwin opened this issue Feb 28, 2013 · 4 comments

Comments

@petebacondarwin
Copy link
Member

@typesafe & @pkozlowski-opensource & @SidhNor

Although it is rather useful to have message box functionality easily available, I think it would be cleaner to separate it out into its own service that happens to rely on $dialog. Then the API would be easier to use. Also, if you didn't need the message box service, you wouldn't need to include its module or its template.

Instead of:

var myDialog = $dialog.dialog({ ... some options ... });
myDialog.open();

and

var myMessageBox = $dialog.messageBox(title, message, buttons);
myMessageBox.open();

You could have $dialog and $messageBox services:

var myDialog = $dialog({... some options ...});
myDialog.open();

and

var myMessageBox = $messageBox(title, message, buttons);
myMessageBox.open();
@ghost ghost assigned ajoslin Feb 28, 2013
@pkozlowski-opensource
Copy link
Member

@petebacondarwin +1 if you ask me.

Those $dialog and $messageBox services are really awesome but we need to do slightly better in terms of API (which is normal for the version 0.1.0). @petebacondarwin pushes it in the right direction IMO.

This issue should be considered alongside #170 which also touches dialog's API.

@SidhNor
Copy link
Contributor

SidhNor commented Feb 28, 2013

+1
I'll take that if you don't mind. :)
Do you think we should provide resolves to messageBox.open() as well?

@petebacondarwin
Copy link
Member Author

+1 resolves to message box as it should be easy to pass them through to the
underlying dialog box and you don't know who might need them?

On 28 February 2013 14:27, Gleb Godonoga notifications@github.com wrote:

+1
I'll take that if you don't mind. :)
Do you think we should provide resolves to messageBox.open() as well?


Reply to this email directly or view it on GitHubhttps://github.com//issues/175#issuecomment-14235511
.

@pkozlowski-opensource
Copy link
Member

Will be handled in #441

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants