mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 12:44:26 +08:00
FIX: Don't show
in date to button (#31352)
This commit is contained in:
parent
878514af6e
commit
aeb3d717dc
@ -284,13 +284,11 @@ export default class LocalDatesCreate extends Component {
|
||||
return dateTime.format("LLLL");
|
||||
}
|
||||
|
||||
@computed("toConfig.dateTime", "toSelected")
|
||||
formattedTo(dateTime, toSelected) {
|
||||
const emptyText = toSelected
|
||||
? " "
|
||||
@computed("toConfig.dateTime")
|
||||
formattedTo(dateTime) {
|
||||
return dateTime.isValid()
|
||||
? dateTime.format("LLLL")
|
||||
: i18n("discourse_local_dates.create.form.until");
|
||||
|
||||
return dateTime.isValid() ? dateTime.format("LLLL") : emptyText;
|
||||
}
|
||||
|
||||
@action
|
||||
|
Loading…
x
Reference in New Issue
Block a user