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: {
|
actions: {
|
||||||
showUserNotes() {
|
showUserNotes() {
|
||||||
const store = getOwner(this).lookup("store:main");
|
const store = getOwner(this).lookup("service:store");
|
||||||
const user = this.get("args.user");
|
const user = this.get("args.user");
|
||||||
showUserNotes(store, user.id, (count) =>
|
showUserNotes(store, user.id, (count) =>
|
||||||
this.set("userNotesCount", count)
|
this.set("userNotesCount", count)
|
||||||
|
|
|
@ -25,7 +25,7 @@ export default {
|
||||||
actions: {
|
actions: {
|
||||||
showUserNotes() {
|
showUserNotes() {
|
||||||
this.parentView.parentView._close();
|
this.parentView.parentView._close();
|
||||||
const store = getOwner(this).lookup("store:main");
|
const store = getOwner(this).lookup("service:store");
|
||||||
const user = this.get("args.user");
|
const user = this.get("args.user");
|
||||||
showUserNotes(store, user.id, (count) => {
|
showUserNotes(store, user.id, (count) => {
|
||||||
if (this.isDestroying || this.isDestroyed) {
|
if (this.isDestroying || this.isDestroyed) {
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default {
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
showUserNotes() {
|
showUserNotes() {
|
||||||
const store = getOwner(this).lookup("store:main");
|
const store = getOwner(this).lookup("service:store");
|
||||||
const user = this.get("args.model");
|
const user = this.get("args.model");
|
||||||
showUserNotes(store, user.id, (count) =>
|
showUserNotes(store, user.id, (count) =>
|
||||||
this.set("userNotesCount", count)
|
this.set("userNotesCount", count)
|
||||||
|
|
|
@ -18,7 +18,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const store = container.lookup("store:main");
|
const store = container.lookup("service:store");
|
||||||
withPluginApi("0.8.15", (api) => {
|
withPluginApi("0.8.15", (api) => {
|
||||||
function widgetshowUserNotes() {
|
function widgetshowUserNotes() {
|
||||||
showUserNotes(
|
showUserNotes(
|
||||||
|
|
Loading…
Reference in New Issue