DEV: Remove Discourse.Site in favor of import (#8344)

* DEV: Remove Discourse.Site in favor of importing Site

* Ran prettier
This commit is contained in:
Mark VanLandingham
2019-11-13 11:13:47 -06:00
committed by Robin Ward
parent d2b3ac1282
commit 3c5df82590
20 changed files with 54 additions and 36 deletions

View File

@ -26,6 +26,7 @@ import Category from "discourse/models/category";
import { Promise } from "rsvp";
import { getProperties } from "@ember/object";
import deprecated from "discourse-common/lib/deprecated";
import Site from "discourse/models/site";
export const SECOND_FACTOR_METHODS = {
TOTP: 1,
@ -200,7 +201,7 @@ const User = RestModel.extend({
@discourseComputed("trust_level")
trustLevel(trustLevel) {
return Discourse.Site.currentProp("trustLevels").findBy(
return Site.currentProp("trustLevels").findBy(
"id",
parseInt(trustLevel, 10)
);