forked from gdpelican/retort
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: implement
Retort
as a service
- Loading branch information
Showing
6 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
assets/javascripts/discourse/connectors/above-footer/emoji-picker-wrapper.js.es6
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,6 +1,7 @@ | ||
import Retort from "../../lib/retort"; | ||
import { getOwnerWithFallback } from "discourse-common/lib/get-owner"; | ||
export default { | ||
setupComponent(args, component) { | ||
Retort.setPicker(component); | ||
const retort = getOwnerWithFallback(component).lookup("service:retort"); | ||
retort.setPicker(component); | ||
}, | ||
}; |
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
4 changes: 2 additions & 2 deletions
4
assets/javascripts/discourse/widgets/post-retort-container.js.es6
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