From 2fa2ea533b5595b3062077b6f0501078f1642b10 Mon Sep 17 00:00:00 2001 From: Mathias Meyer Date: Tue, 6 May 2014 10:10:36 +0200 Subject: [PATCH] Fix repository hint on accounts pages. Accounts and the profile are currently separate controllers, so whenever you switched the account, the message would be hidden. --- assets/scripts/app/controllers/account_index.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/scripts/app/controllers/account_index.coffee b/assets/scripts/app/controllers/account_index.coffee index eff1101f..754e5b98 100644 --- a/assets/scripts/app/controllers/account_index.coffee +++ b/assets/scripts/app/controllers/account_index.coffee @@ -10,3 +10,11 @@ Travis.AccountIndexController = Em.Controller.extend toggle: (hook) -> hook.toggle() + + showPrivateReposHint: (-> + Travis.config.show_repos_hint == 'private' + ) .property() + + showPublicReposHint: (-> + Travis.config.show_repos_hint == 'public' + ) .property()