DEV: refactor to use getOwnerWithFallback instead of getOwner
This commit is contained in:
parent
b0f92d9e82
commit
e9f6566474
|
@ -1,8 +1,8 @@
|
||||||
import UserNotesModal from "../../discourse/components/modal/user-notes";
|
import UserNotesModal from "../../discourse/components/modal/user-notes";
|
||||||
import { getOwner } from "discourse-common/lib/get-owner";
|
import { getOwnerWithFallback } from "discourse-common/lib/get-owner";
|
||||||
|
|
||||||
export function showUserNotes(store, userId, callback, opts) {
|
export function showUserNotes(store, userId, callback, opts) {
|
||||||
const modal = getOwner(this).lookup("service:modal");
|
const modal = getOwnerWithFallback(this).lookup("service:modal");
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
|
|
||||||
return store.find("user-note", { user_id: userId }).then((model) => {
|
return store.find("user-note", { user_id: userId }).then((model) => {
|
||||||
|
|
Loading…
Reference in New Issue