Set individual future-date-input components as clearable, fixes admin Safari bug (#6522)

This commit is contained in:
Penar Musaraj 2018-10-25 20:34:55 -04:00 committed by Sam
parent ed9c21e42c
commit 3c92202654
5 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@
class="silence-until"
label="admin.user.silence_duration"
includeFarFuture=true
clearable=false
input=silenceUntil}}
</label>
</div>

View File

@ -8,6 +8,7 @@
class="suspend-until"
label="admin.user.suspend_duration"
includeFarFuture=true
clearable=false
input=suspendUntil}}
</label>
</div>

View File

@ -8,6 +8,7 @@
input=input
includeWeekend=includeWeekend
includeFarFuture=includeFarFuture
clearable=clearable
none="topic.auto_update_input.none"}}
</div>

View File

@ -44,6 +44,7 @@
{{future-date-input
class="pin-until"
includeFarFuture=true
clearable=true
input=model.pinnedInCategoryUntil}}
{{popup-input-tip validation=pinInCategoryValidation shownAt=pinInCategoryTipShownAt}}
</p>
@ -54,6 +55,7 @@
{{future-date-input
class="pin-until"
includeFarFuture=true
clearable=true
input=model.pinnedInCategoryUntil}}
{{popup-input-tip validation=pinInCategoryValidation shownAt=pinInCategoryTipShownAt}}
</p>
@ -86,6 +88,7 @@
{{future-date-input
class="pin-until"
includeFarFuture=true
clearable=true
input=model.pinnedGloballyUntil}}
{{popup-input-tip validation=pinGloballyValidation shownAt=pinGloballyTipShownAt}}
</p>
@ -96,6 +99,7 @@
{{future-date-input
class="pin-until"
includeFarFuture=true
clearable=true
input=model.pinnedGloballyUntil}}
{{popup-input-tip validation=pinGloballyValidation shownAt=pinGloballyTipShownAt}}
</p>

View File

@ -164,7 +164,6 @@ export default ComboBoxComponent.extend(DatetimeMixin, {
classNames: ["future-date-input-selector"],
isCustom: Ember.computed.equal("value", "pick_date_and_time"),
isBasedOnLastPost: Ember.computed.equal("value", "set_based_on_last_post"),
clearable: true,
rowComponent: "future-date-input-selector/future-date-input-selector-row",
headerComponent:
"future-date-input-selector/future-date-input-selector-header",