-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bring back options and defaults, remove old docs and files
- Loading branch information
1 parent
7b80220
commit 819da51
Showing
4 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
export { default } from 'ember-toastr/services/toast'; | ||
import ENV from '../config/environment'; | ||
|
||
const toastrOptions = { | ||
closeButton: true, | ||
debug: false, | ||
newestOnTop: true, | ||
progressBar: true, | ||
positionClass: 'toast-top-right', | ||
preventDuplicates: true, | ||
onclick: null, | ||
showDuration: '300', | ||
hideDuration: '1000', | ||
timeOut: '4000', | ||
extendedTimeOut: '1000', | ||
showEasing: 'swing', | ||
hideEasing: 'linear', | ||
showMethod: 'fadeIn', | ||
hideMethod: 'fadeOut' | ||
}; | ||
const config = ENV['ember-toastr'] || { | ||
toastrOptions: toastrOptions | ||
}; | ||
|
||
import Service from 'ember-toastr/services/toast'; | ||
|
||
export default Service.extend({ | ||
defaultToastrOptions: toastrOptions, | ||
config: config | ||
}) |
This file was deleted.
Oops, something went wrong.