mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
Rename auto-update-input
to more accurate future-date-input
This commit is contained in:
parent
6bce3004d9
commit
8323e22d0c
@ -1,7 +1,7 @@
|
||||
{{#d-modal-body title="admin.user.suspend_modal_title"}}
|
||||
<div class='until-controls'>
|
||||
<label>
|
||||
{{auto-update-input
|
||||
{{future-date-input
|
||||
class="suspend-until"
|
||||
label="admin.user.suspend_duration"
|
||||
input=suspendUntil}}
|
||||
|
@ -15,7 +15,7 @@ export const SET_BASED_ON_LAST_POST = 'set_based_on_last_post';
|
||||
export const FORMAT = 'YYYY-MM-DD HH:mm';
|
||||
|
||||
export default Combobox.extend({
|
||||
classNames: ['auto-update-input-selector'],
|
||||
classNames: ['future-date-input-selector'],
|
||||
isCustom: Ember.computed.equal("value", PICK_DATE_AND_TIME),
|
||||
|
||||
@computed()
|
||||
@ -128,13 +128,13 @@ export default Combobox.extend({
|
||||
let output = "";
|
||||
|
||||
if (!Ember.isEmpty(icons)) {
|
||||
output += `<span class='auto-update-input-selector-icons'>${icons}</span>`;
|
||||
output += `<span class='future-date-input-selector-icons'>${icons}</span>`;
|
||||
}
|
||||
|
||||
output += `<span>${state.text}</span>`;
|
||||
|
||||
if (time) {
|
||||
output += `<span class='auto-update-input-selector-datetime'>${time}</span>`;
|
||||
output += `<span class='future-date-input-selector-datetime'>${time}</span>`;
|
||||
}
|
||||
|
||||
return output;
|
@ -3,7 +3,7 @@ import {
|
||||
FORMAT,
|
||||
PICK_DATE_AND_TIME,
|
||||
SET_BASED_ON_LAST_POST
|
||||
} from "discourse/components/auto-update-input-selector";
|
||||
} from "discourse/components/future-date-input-selector";
|
||||
|
||||
import { PUBLISH_TO_CATEGORY_STATUS_TYPE } from 'discourse/controllers/edit-topic-timer';
|
||||
|
@ -1,8 +1,8 @@
|
||||
<div class="auto-update-input">
|
||||
<div class="future-date-input">
|
||||
<div class="control-group">
|
||||
<label>{{displayLabel}}</label>
|
||||
|
||||
{{auto-update-input-selector
|
||||
{{future-date-input-selector
|
||||
valueAttribute="id"
|
||||
minimumResultsForSearch=-1
|
||||
statusType=statusType
|
@ -6,7 +6,7 @@
|
||||
|
||||
<div>
|
||||
{{#if showTimeOnly}}
|
||||
{{auto-update-input
|
||||
{{future-date-input
|
||||
input=updateTime
|
||||
statusType=selection
|
||||
basedOnLastPost=false}}
|
||||
@ -18,13 +18,13 @@
|
||||
excludeCategoryId=excludeCategoryId}}
|
||||
</div>
|
||||
|
||||
{{auto-update-input
|
||||
{{future-date-input
|
||||
input=updateTime
|
||||
statusType=selection
|
||||
categoryId=topicTimer.category_id
|
||||
basedOnLastPost=false}}
|
||||
{{else if autoClose}}
|
||||
{{auto-update-input
|
||||
{{future-date-input
|
||||
input=updateTime
|
||||
statusType=selection
|
||||
basedOnLastPost=topicTimer.based_on_last_post
|
||||
|
@ -135,7 +135,7 @@ div.ac-wrap {
|
||||
}
|
||||
}
|
||||
|
||||
.auto-update-input {
|
||||
.future-date-input {
|
||||
.examples {
|
||||
color: lighten($primary, 40%);
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.auto-update-input {
|
||||
.future-date-input {
|
||||
input {
|
||||
margin: 0;
|
||||
}
|
||||
|
@ -298,7 +298,7 @@
|
||||
}
|
||||
|
||||
.edit-category-modal {
|
||||
.auto-update-input, .num-featured-topics-fields, .position-fields {
|
||||
.future-date-input, .num-featured-topics-fields, .position-fields {
|
||||
input[type=text] {
|
||||
width: 50px;
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
.auto-update-input-selector-datetime {
|
||||
.future-date-input-selector-datetime {
|
||||
float: right;
|
||||
color: lighten($primary, 40%);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.auto-update-input-selector-icons {
|
||||
.future-date-input-selector-icons {
|
||||
margin-right: 10px;
|
||||
}
|
@ -305,7 +305,7 @@
|
||||
display: block;
|
||||
bottom: 8px;
|
||||
}
|
||||
.auto-update-input .examples {
|
||||
.future-date-input .examples {
|
||||
margin-top: 0;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ sup sup, sub sup, sup sub, sub sub { top: 0; }
|
||||
}
|
||||
|
||||
.edit-topic-timer-modal {
|
||||
.auto-update-input {
|
||||
.future-date-input {
|
||||
.alert-info {
|
||||
margin: 0 -10px -10px -10px;
|
||||
padding: 10px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user