2021-01-19 08:50:37 +01:00
|
|
|
import DateTimeInput from "discourse/components/date-time-input";
|
2021-02-24 08:43:35 +01:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2021-01-19 08:50:37 +01:00
|
|
|
|
|
|
|
export default DateTimeInput.extend({
|
2021-02-24 08:43:35 +01:00
|
|
|
@discourseComputed("timeFirst", "tabindex")
|
2021-01-19 08:50:37 +01:00
|
|
|
timeTabindex(timeFirst, tabindex) {
|
|
|
|
return timeFirst ? tabindex : tabindex + 1;
|
|
|
|
},
|
2021-02-24 08:43:35 +01:00
|
|
|
|
|
|
|
@discourseComputed("timeFirst", "tabindex")
|
2021-01-19 08:50:37 +01:00
|
|
|
dateTabindex(timeFirst, tabindex) {
|
|
|
|
return timeFirst ? tabindex + 1 : tabindex;
|
2021-02-24 08:43:35 +01:00
|
|
|
},
|
|
|
|
});
|