2021-01-19 08:50:37 +01:00
|
|
|
import DateTimeInput from "discourse/components/date-time-input";
|
2021-03-28 11:06:49 +02:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2021-01-19 08:50:37 +01:00
|
|
|
|
|
|
|
export default DateTimeInput.extend({
|
2022-06-15 08:59:09 +02:00
|
|
|
layoutName: "wizard/templates/components/wizard-date-time-input",
|
2022-03-16 12:33:34 +01:00
|
|
|
|
2021-03-28 11:06:49 +02:00
|
|
|
@discourseComputed("timeFirst", "tabindex")
|
2021-01-19 08:50:37 +01:00
|
|
|
timeTabindex(timeFirst, tabindex) {
|
|
|
|
return timeFirst ? tabindex : tabindex + 1;
|
|
|
|
},
|
2021-03-28 11:06:49 +02:00
|
|
|
|
|
|
|
@discourseComputed("timeFirst", "tabindex")
|
2021-01-19 08:50:37 +01:00
|
|
|
dateTabindex(timeFirst, tabindex) {
|
|
|
|
return timeFirst ? tabindex + 1 : tabindex;
|
2021-03-28 11:06:49 +02:00
|
|
|
},
|
|
|
|
});
|