Skip to content

Add support of message === false #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ or this:
```

* `promise` - Required. The promise (or array of promises) that will cause the busy indicator to show.
* `message` - Optional. Defaults to 'Please Wait...'. The message to show in the indicator. This value may be updated while the promise is active. The indicator will reflect the updated values as they're changed.
* `message` - Optional. Defaults to 'Please Wait...'. The message to show in the indicator. This value may be updated while the promise is active. The indicator will reflect the updated values as they're changed. `false` to hide message.
* `backdrop` - Optional. Boolean, default is true. If true a faded backdrop will be shown behind the progress indicator.
* `templateUrl` - Optional. If provided, the given template will be shown in place of the default progress indicatory template.
* `delay` - Optional. The amount of time to wait until showing the indicator. Defaults to 0. Specified in milliseconds.
Expand Down
2 changes: 1 addition & 1 deletion angular-busy.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ angular.module('cgBusy').directive('cgBusy',['$compile','$templateCache','cgBusy
templateScope = scope.$new();
}

templateScope.$message = options.message;
templateScope.$message = options.message !== false ? options.message : '';

if (!angular.equals(tracker.promises,options.promise)) {
tracker.reset({
Expand Down