mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
@@ -55,7 +55,7 @@ export default class AdminPlugin {
|
||||
get nameTitleized() {
|
||||
// The category name is better in a lot of cases, as it's a human-inputted
|
||||
// translation, and we can handle things like SAML instead of showing them
|
||||
// as Saml from discourse-saml. We can fall back to the programattic version
|
||||
// as Saml from discourse-saml. We can fall back to the programmatic version
|
||||
// though if needed.
|
||||
let name;
|
||||
if (this.translatedCategoryName) {
|
||||
|
||||
@@ -627,10 +627,10 @@ class PluginApi {
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* action: may be a string or a function. If it is a string, a wiget action
|
||||
* action: may be a string or a function. If it is a string, a widget action
|
||||
* will be triggered. If it is function, the function will be called.
|
||||
*
|
||||
* function will recieve a single argument:
|
||||
* function will receive a single argument:
|
||||
* {
|
||||
* post:
|
||||
* showFeedback:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { importSync } from "@embroider/macros";
|
||||
import loaderShim from "discourse-common/lib/loader-shim";
|
||||
|
||||
// AMD shims for the app bunndle, see the comment in loader-shim.js
|
||||
// AMD shims for the app bundle, see the comment in loader-shim.js
|
||||
// These effectively become public APIs for plugins, so add/remove them carefully
|
||||
loaderShim("@discourse/itsatrap", () => importSync("@discourse/itsatrap"));
|
||||
loaderShim("@ember-compat/tracked-built-ins", () =>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { importSync } from "@embroider/macros";
|
||||
import loaderShim from "discourse-common/lib/loader-shim";
|
||||
|
||||
// AMD shims for the test bunndle, see the comment in loader-shim.js
|
||||
// AMD shims for the test bundle, see the comment in loader-shim.js
|
||||
loaderShim("pretender", () => importSync("pretender"));
|
||||
loaderShim("qunit", () => importSync("qunit"));
|
||||
loaderShim("sinon", () => importSync("sinon"));
|
||||
|
||||
Reference in New Issue
Block a user