FIX: Add `getURL` back in
I think the failure was unrelated
This commit is contained in:
parent
c49a1288b2
commit
a991684943
|
@ -6,6 +6,7 @@ import { h } from "virtual-dom";
|
||||||
import { queryRegistry } from "discourse/widgets/widget";
|
import { queryRegistry } from "discourse/widgets/widget";
|
||||||
import { getOwner } from "discourse-common/lib/get-owner";
|
import { getOwner } from "discourse-common/lib/get-owner";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
|
import getURL from "discourse-common/lib/get-url";
|
||||||
|
|
||||||
function titleForState(user) {
|
function titleForState(user) {
|
||||||
if (user) {
|
if (user) {
|
||||||
|
@ -102,7 +103,7 @@ function initialize(api) {
|
||||||
customHref: category => {
|
customHref: category => {
|
||||||
if (category) {
|
if (category) {
|
||||||
return (
|
return (
|
||||||
Discourse.getURL(category.url) +
|
getURL(category.url) +
|
||||||
"/l/latest?status=open&assigned=nobody"
|
"/l/latest?status=open&assigned=nobody"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -173,7 +174,7 @@ function initialize(api) {
|
||||||
@computed("assigned_to_user")
|
@computed("assigned_to_user")
|
||||||
assignedToUserPath(assignedToUser) {
|
assignedToUserPath(assignedToUser) {
|
||||||
const siteSettings = api.container.lookup("site-settings:main");
|
const siteSettings = api.container.lookup("site-settings:main");
|
||||||
return Discourse.getURL(
|
return getURL(
|
||||||
siteSettings.assigns_user_url_path.replace(
|
siteSettings.assigns_user_url_path.replace(
|
||||||
"{username}",
|
"{username}",
|
||||||
assignedToUser.username
|
assignedToUser.username
|
||||||
|
@ -185,7 +186,7 @@ function initialize(api) {
|
||||||
api.modifyClass("model:bookmark", {
|
api.modifyClass("model:bookmark", {
|
||||||
@computed("assigned_to_user")
|
@computed("assigned_to_user")
|
||||||
assignedToUserPath(assignedToUser) {
|
assignedToUserPath(assignedToUser) {
|
||||||
return Discourse.getURL(
|
return getURL(
|
||||||
this.siteSettings.assigns_user_url_path.replace(
|
this.siteSettings.assigns_user_url_path.replace(
|
||||||
"{username}",
|
"{username}",
|
||||||
assignedToUser.username
|
assignedToUser.username
|
||||||
|
|
Loading…
Reference in New Issue