Files
discourse-user-card-directory/javascripts/discourse/components/user-card-static.js
T
David TaylorandJarek Radosz 1902277ff0 DEV: Update linting (#22)
* drop jQ

* qunit-dom

* convert the button to gjs

* use the store

---------

Co-authored-by: Jarek Radosz <[email protected]>
2024-03-28 10:12:48 +00:00

21 lines
649 B
JavaScript

import { action } from "@ember/object";
import UserCardContents from "discourse/components/user-card-contents";
export default UserCardContents.extend({
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;
},
});