mirror of
https://github.com/discourse/discourse-user-card-directory.git
synced 2025-03-07 10:19:49 +00:00
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>
21 lines
674 B
JavaScript
21 lines
674 B
JavaScript
import { action } from "@ember/object";
|
|
import UserCardContents from "discourse/components/user-card-contents";
|
|
|
|
export default class UserCardStaticContents extends UserCardContents {
|
|
layoutName = "components/user-card-contents";
|
|
elementId = null;
|
|
// Overriding functions which cause the user card to show/hide based on mouse/keyboard events:
|
|
cleanUp() {}
|
|
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
|
|
didInsertElement() {}
|
|
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
|
|
willDestroyElement() {}
|
|
keyUp() {}
|
|
|
|
// need to override this to work with the loading slider
|
|
@action
|
|
handleShowUser() {
|
|
return;
|
|
}
|
|
}
|