This commit is contained in:
@@ -33,6 +33,14 @@ module.exports = class {
|
||||
this.emit("close")
|
||||
}
|
||||
|
||||
selectUnknown(nick) {
|
||||
this.state.values = Object.assign({}, this.state.values, {
|
||||
nick: nick,
|
||||
name: nick.replace(/_/g, " ").replace(/`/g, "'"),
|
||||
shortName: (!nick.includes("_") && nick.includes("`")) ? nick.split("`")[0] : "",
|
||||
})
|
||||
}
|
||||
|
||||
save() {
|
||||
if (this.state.loading) {
|
||||
return
|
||||
|
||||
@@ -21,4 +21,12 @@
|
||||
<textarea key="description" placeholder="Description" on-change("change", "description") value=state.values.description />
|
||||
|
||||
<button disabled=state.loading on-click("save")>Save</button>
|
||||
|
||||
<h2>Unknown Nicks</h2>
|
||||
<p>After you're done adding the one you're here for, why not take a look at the unknown nicks discovered in the last log character updates?</p>
|
||||
<p>Clicking one will change the nick in the form above, and add a guess for what the full name is.</p>
|
||||
<if-permitted not user=input.user permission="character.add">
|
||||
<p class="color-danger">You don't have permission to set a different author on characters, so only add your own.</p>
|
||||
</if-permitted>
|
||||
<unknown-nick-list on-select("selectUnknown") />
|
||||
</modal>
|
||||
Reference in New Issue
Block a user