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:
Ian Goodacre 2020-06-16 21:06:55 +00:00
parent 69c8df422d
commit d7d7d59f47
1 changed files with 1 additions and 0 deletions

View File

@ -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