DEV: Remove unneeded layoutName properties

Now that templates are colocated, they are automatically associated with the Component class (and all child classes)
This commit is contained in:
David Taylor 2023-02-13 18:20:05 +00:00
parent ba3f62f576
commit 8788672890
4 changed files with 0 additions and 8 deletions

View File

@ -1,8 +1,6 @@
import DatePicker from "discourse/components/date-picker";
export default DatePicker.extend({
layoutName: "components/date-picker",
_opts() {
return {
defaultDate: this.defaultDate || moment().add(1, "day").toDate(),

View File

@ -1,8 +1,6 @@
import DatePicker from "discourse/components/date-picker";
export default DatePicker.extend({
layoutName: "components/date-picker",
_opts() {
return {
defaultDate:

View File

@ -19,7 +19,6 @@ export function resetWidgetCleanCallbacks() {
}
export default Component.extend({
layoutName: "components/mount-widget",
_tree: null,
_rootNode: null,
_timeout: null,

View File

@ -13,9 +13,6 @@ export default Component.extend({
role: "region",
// Allow us to extend it
layoutName: "components/topic-footer-buttons",
@discourseComputed("canSendPms", "topic.isPrivateMessage")
canArchive(canSendPms, isPM) {
return canSendPms && isPM;