discourse-user-card-directory/javascripts/discourse/components/user-card-static.js

21 lines
649 B
JavaScript
Raw Normal View History

import { action } from "@ember/object";
import UserCardContents from "discourse/components/user-card-contents";
2020-02-28 10:01:48 -05:00
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
2020-02-28 10:01:48 -05:00
didInsertElement() {},
// eslint-disable-next-line ember/require-super-in-lifecycle-hooks
2020-02-28 10:01:48 -05:00
willDestroyElement() {},
keyUp() {},
// need to override this to work with the loading slider
@action
handleShowUser() {
return;
},
2020-02-28 10:01:48 -05:00
});