|
@@ -113,16 +113,16 @@ export class HomePage {
|
|
this.privateTweet = !this.privateTweet;
|
|
this.privateTweet = !this.privateTweet;
|
|
const loading = this.loadingCtrl.create();
|
|
const loading = this.loadingCtrl.create();
|
|
loading.present();
|
|
loading.present();
|
|
- this.tweets = this.privateTweets;
|
|
|
|
-
|
|
|
|
|
|
+
|
|
if(this.privateTweet){
|
|
if(this.privateTweet){
|
|
this.color = 'black';
|
|
this.color = 'black';
|
|
|
|
+ this.tweets = this.privateTweets;
|
|
loading.dismiss();
|
|
loading.dismiss();
|
|
}
|
|
}
|
|
|
|
|
|
else{
|
|
else{
|
|
this.color = 'white';
|
|
this.color = 'white';
|
|
- this.tweets =this.cachedTweets;
|
|
|
|
|
|
+ this.tweets = this.cachedTweets;
|
|
loading.dismiss();
|
|
loading.dismiss();
|
|
}
|
|
}
|
|
|
|
|