-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/app switcher #4994
Fix/app switcher #4994
Conversation
12944cc
to
4d20063
Compare
LGTM |
controller: function () { | ||
|
||
// links don't cause full-navigation events in certain scenarios | ||
// so we force them when needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
Also note here that I modified the icon padding - |
…rily the apps url
a1d3dc3
to
96a3406
Compare
require('ui/chrome/appSwitcher'); | ||
var DomLocationProvider = require('ui/domLocation'); | ||
|
||
function findTestSubject() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be duplicated with findTestSubject.js?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, didn't mean to include findTestSubject.js. Planned to replace with #5001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed findTestSubject.js
Clickin on(reloading) the current app is dropping the href |
f43c349
to
a7f6414
Compare
a7f6414
to
c46cb43
Compare
LGTM, sending to @lukasolson for seconds |
Hmm, it's probably not intentional but does seem strange. Does the timepicker have the same behavior? |
Yeah, it does. I think it's probably fine. |
Cool |
@@ -0,0 +1,15 @@ | |||
module.exports = function DomLocationProvider($window) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, why do you create this module instead of using something like $location
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$location
doesn't provide the whole url, just the url as the angular router sees it (the part after the hash). Since we have different apps with potentially different base urls (like status page) I needed the whole url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, $location.absUrl
is only a getter, not a setter. Makes sense. Thanks
LGTM. |
Fixes #4990
This adds an
appSwitcher
directive that currently just reacts to the clicks on apps and ensures that they cause a full page load.