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:
@ -36,6 +36,7 @@ claim_wiki = () ->
|
|||||||
response.json().then (json) ->
|
response.json().then (json) ->
|
||||||
ownerName = json.ownerName
|
ownerName = json.ownerName
|
||||||
window.isClaimed = true
|
window.isClaimed = true
|
||||||
|
window.isOwner = true
|
||||||
update_footer ownerName, true
|
update_footer ownerName, true
|
||||||
else
|
else
|
||||||
console.log 'Attempt to claim site failed', response
|
console.log 'Attempt to claim site failed', response
|
||||||
|
Reference in New Issue
Block a user