fixed logout
This commit is contained in:
parent
ba5f901a78
commit
d02b713341
10 changed files with 90 additions and 25 deletions
|
@ -38,6 +38,10 @@ ScrollView {
|
|||
}
|
||||
}
|
||||
|
||||
function loggedOut() {
|
||||
post = null
|
||||
}
|
||||
|
||||
Label { id: fontLabel }
|
||||
|
||||
WebView {
|
||||
|
@ -52,6 +56,8 @@ ScrollView {
|
|||
function setPost() {
|
||||
if(post) {
|
||||
experimental.evaluateJavaScript("setArticle(" + post.jsonString + ")")
|
||||
} else {
|
||||
experimental.evaluateJavaScript("setArticle('logout')")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue