DEV: Fix lint. (#7824)
This commit is contained in:
parent
aa9b9e1930
commit
4f97f85178
|
@ -69,7 +69,8 @@ const Post = RestModel.extend({
|
||||||
return postNumber === 1 ? `${baseUrl}/1` : baseUrl;
|
return postNumber === 1 ? `${baseUrl}/1` : baseUrl;
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("username") usernameUrl: userPath,
|
@computed("username")
|
||||||
|
usernameUrl: userPath,
|
||||||
|
|
||||||
topicOwner: propertyEqual("topic.details.created_by.id", "user_id"),
|
topicOwner: propertyEqual("topic.details.created_by.id", "user_id"),
|
||||||
|
|
||||||
|
|
|
@ -205,13 +205,17 @@ const User = RestModel.extend({
|
||||||
return suspendedTill && moment(suspendedTill).isAfter();
|
return suspendedTill && moment(suspendedTill).isAfter();
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("suspended_till") suspendedForever: isForever,
|
@computed("suspended_till")
|
||||||
|
suspendedForever: isForever,
|
||||||
|
|
||||||
@computed("silenced_till") silencedForever: isForever,
|
@computed("silenced_till")
|
||||||
|
silencedForever: isForever,
|
||||||
|
|
||||||
@computed("suspended_till") suspendedTillDate: longDate,
|
@computed("suspended_till")
|
||||||
|
suspendedTillDate: longDate,
|
||||||
|
|
||||||
@computed("silenced_till") silencedTillDate: longDate,
|
@computed("silenced_till")
|
||||||
|
silencedTillDate: longDate,
|
||||||
|
|
||||||
changeUsername(new_username) {
|
changeUsername(new_username) {
|
||||||
return ajax(userPath(`${this.username_lower}/preferences/username`), {
|
return ajax(userPath(`${this.username_lower}/preferences/username`), {
|
||||||
|
|
|
@ -191,9 +191,7 @@ class Compiler {
|
||||||
|
|
||||||
const attrString = `{${attributes.join(", ")}}`;
|
const attrString = `{${attributes.join(", ")}}`;
|
||||||
instructions.push(
|
instructions.push(
|
||||||
`${parentAcc}.push(virtualDom.h('${
|
`${parentAcc}.push(virtualDom.h('${node.tag}', ${attrString}, ${innerAcc}));`
|
||||||
node.tag
|
|
||||||
}', ${attrString}, ${innerAcc}));`
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
instructions.push(
|
instructions.push(
|
||||||
|
|
Loading…
Reference in New Issue