summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DiscoverViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-01 22:21:20 +0300
committerGravatar Vitaly Takmazov2018-04-01 22:21:20 +0300
commit677397be225a3b34f4b26e573fd067f73f9eb75c (patch)
tree0cfc86aa5e344d47203e7724fcf5b3c16635074d /Juick/ViewControllers/DiscoverViewController.m
parentf2ad6e8f2bbca27cb9c4777adb581d169c77057b (diff)
Fix login
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index c874c25..fde23ee 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -74,6 +74,10 @@ AppDelegate *appDelegate;
}
}
- (IBAction)filterAction:(id)sender {
+ if (![User isAuthenticated]) {
+ [self performSegueWithIdentifier:@"loginSegue" sender:self];
+ return;
+ }
UIAlertController *filterAlert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
[filterAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
[filterAlert addAction:[UIAlertAction actionWithTitle:@"My feed" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {