DEV: update core extension of UserCardContents (#37)
Should fix tests, they were failing with this error: Attempted to register a view with an id already in use: user-card... Co-authored-by: Sérgio Saquetim <1108771+megothss@users.noreply.github.com>
This commit is contained in:
parent
8b65992b25
commit
e635539583
|
@ -1,20 +1,20 @@
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import UserCardContents from "discourse/components/user-card-contents";
|
import UserCardContents from "discourse/components/user-card-contents";
|
||||||
|
|
||||||
export default UserCardContents.extend({
|
export default class UserCardStaticContents extends UserCardContents {
|
||||||
layoutName: "components/user-card-contents",
|
layoutName = "components/user-card-contents";
|
||||||
elementId: null,
|
elementId = null;
|
||||||
// Overriding functions which cause the user card to show/hide based on mouse/keyboard events:
|
// Overriding functions which cause the user card to show/hide based on mouse/keyboard events:
|
||||||
cleanUp() {},
|
cleanUp() {}
|
||||||
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
|
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
|
||||||
didInsertElement() {},
|
didInsertElement() {}
|
||||||
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
|
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
|
||||||
willDestroyElement() {},
|
willDestroyElement() {}
|
||||||
keyUp() {},
|
keyUp() {}
|
||||||
|
|
||||||
// need to override this to work with the loading slider
|
// need to override this to work with the loading slider
|
||||||
@action
|
@action
|
||||||
handleShowUser() {
|
handleShowUser() {
|
||||||
return;
|
return;
|
||||||
},
|
}
|
||||||
});
|
}
|
||||||
|
|
Loading…
Reference in New Issue