DEV: Fix `store:main` deprecation (#45)
* DEV: Fix `store:main` deprecation * more
This commit is contained in:
parent
8abc3ed1fb
commit
549f76495d
|
@ -21,7 +21,7 @@ export default {
|
|||
|
||||
actions: {
|
||||
showUserNotes() {
|
||||
const store = getOwner(this).lookup("store:main");
|
||||
const store = getOwner(this).lookup("service:store");
|
||||
const user = this.get("args.user");
|
||||
showUserNotes(store, user.id, (count) =>
|
||||
this.set("userNotesCount", count)
|
||||
|
|
|
@ -25,7 +25,7 @@ export default {
|
|||
actions: {
|
||||
showUserNotes() {
|
||||
this.parentView.parentView._close();
|
||||
const store = getOwner(this).lookup("store:main");
|
||||
const store = getOwner(this).lookup("service:store");
|
||||
const user = this.get("args.user");
|
||||
showUserNotes(store, user.id, (count) => {
|
||||
if (this.isDestroying || this.isDestroyed) {
|
||||
|
|
|
@ -17,7 +17,7 @@ export default {
|
|||
|
||||
actions: {
|
||||
showUserNotes() {
|
||||
const store = getOwner(this).lookup("store:main");
|
||||
const store = getOwner(this).lookup("service:store");
|
||||
const user = this.get("args.model");
|
||||
showUserNotes(store, user.id, (count) =>
|
||||
this.set("userNotesCount", count)
|
||||
|
|
|
@ -18,7 +18,7 @@ export default {
|
|||
return;
|
||||
}
|
||||
|
||||
const store = container.lookup("store:main");
|
||||
const store = container.lookup("service:store");
|
||||
withPluginApi("0.8.15", (api) => {
|
||||
function widgetshowUserNotes() {
|
||||
showUserNotes(
|
||||
|
|
Loading…
Reference in New Issue