Set isOwner true in claim_wiki
After successfully claiming a wiki the client didn't recognize the wiki as owned until it was reloaded. With this change, the client recognizes the wiki is owned immediately upon a successful claim.
This commit is contained in:
parent
69c8df422d
commit
d7d7d59f47
|
@ -36,6 +36,7 @@ claim_wiki = () ->
|
|||
response.json().then (json) ->
|
||||
ownerName = json.ownerName
|
||||
window.isClaimed = true
|
||||
window.isOwner = true
|
||||
update_footer ownerName, true
|
||||
else
|
||||
console.log 'Attempt to claim site failed', response
|
||||
|
|
Loading…
Reference in New Issue