From dfe8dcc7f008665a487eb1083344d71c9b9b030f Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 21 Sep 2015 14:01:56 -0700 Subject: [PATCH 01/15] [chrome] indicate which app is active in the switcher --- src/ui/public/chrome/api/nav.js | 4 ++++ src/ui/public/chrome/appSwitcher/appSwitcher.html | 2 +- src/ui/public/chrome/appSwitcher/appSwitcher.less | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/ui/public/chrome/api/nav.js b/src/ui/public/chrome/api/nav.js index 0d47ba77fdfc..d82522662458 100644 --- a/src/ui/public/chrome/api/nav.js +++ b/src/ui/public/chrome/api/nav.js @@ -25,6 +25,10 @@ module.exports = function (chrome, internals) { a.setAttribute('href', link.url); link.url = a.href; link.lastSubUrl = chrome.getLastSubUrlFor(link.url); + + if (link.url === chrome.getAppUrl()) { + link.active = true; + } }); }; diff --git a/src/ui/public/chrome/appSwitcher/appSwitcher.html b/src/ui/public/chrome/appSwitcher/appSwitcher.html index 19c0aa1c42d4..e5df0ba69502 100644 --- a/src/ui/public/chrome/appSwitcher/appSwitcher.html +++ b/src/ui/public/chrome/appSwitcher/appSwitcher.html @@ -1,5 +1,5 @@