fixed logout

This commit is contained in:
Jeena 2015-02-17 23:31:23 +01:00
parent ba5f901a78
commit d02b713341
10 changed files with 90 additions and 25 deletions

View file

@ -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')")
}
}