mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
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:
parent
ba3f62f576
commit
8788672890
@ -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(),
|
||||
|
@ -1,8 +1,6 @@
|
||||
import DatePicker from "discourse/components/date-picker";
|
||||
|
||||
export default DatePicker.extend({
|
||||
layoutName: "components/date-picker",
|
||||
|
||||
_opts() {
|
||||
return {
|
||||
defaultDate:
|
||||
|
@ -19,7 +19,6 @@ export function resetWidgetCleanCallbacks() {
|
||||
}
|
||||
|
||||
export default Component.extend({
|
||||
layoutName: "components/mount-widget",
|
||||
_tree: null,
|
||||
_rootNode: null,
|
||||
_timeout: null,
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user