Make eslint happy.
This commit is contained in:
parent
ea714c1d10
commit
7c4ee027b4
|
@ -14,7 +14,7 @@ export default {
|
||||||
_glued = [];
|
_glued = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
function _attachWidget(api, container, options) {
|
function _attachWidget(container, options) {
|
||||||
const glue = new WidgetGlue(
|
const glue = new WidgetGlue(
|
||||||
"discourse-group-timezones",
|
"discourse-group-timezones",
|
||||||
getRegister(api),
|
getRegister(api),
|
||||||
|
@ -39,7 +39,7 @@ export default {
|
||||||
|
|
||||||
const members = post.group_timezones[group] || [];
|
const members = post.group_timezones[group] || [];
|
||||||
|
|
||||||
_attachWidget(api, groupTimezone, {
|
_attachWidget(groupTimezone, {
|
||||||
id: `${post.id}-${idx}`,
|
id: `${post.id}-${idx}`,
|
||||||
members,
|
members,
|
||||||
group,
|
group,
|
||||||
|
|
|
@ -79,6 +79,6 @@ if (typeof moment.fn.floor !== "function") {
|
||||||
|
|
||||||
const STEP = 15;
|
const STEP = 15;
|
||||||
|
|
||||||
export default function roundTime(date, negativeOffset = true) {
|
export default function roundTime(date) {
|
||||||
return date.round(STEP, "minutes");
|
return date.round(STEP, "minutes");
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ export default createWidget("discourse-group-timezones-filter", {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
buildAttributes(attrs) {
|
buildAttributes() {
|
||||||
return {
|
return {
|
||||||
type: "text",
|
type: "text",
|
||||||
placeholder: I18n.t("group_timezones.search")
|
placeholder: I18n.t("group_timezones.search")
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default createWidget("discourse-group-timezones-slider", {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
buildAttributes(attrs) {
|
buildAttributes() {
|
||||||
return {
|
return {
|
||||||
step: 1,
|
step: 1,
|
||||||
value: 0,
|
value: 0,
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default createWidget("discourse-group-timezones", {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultState(attrs) {
|
defaultState() {
|
||||||
return {
|
return {
|
||||||
localTimeOffset: 0
|
localTimeOffset: 0
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue