Merge lp://staging/~gary/juju-gui/syncMenu into lp://staging/juju-gui/experimental
Status: | Merged |
---|---|
Merged at revision: | 1053 |
Proposed branch: | lp://staging/~gary/juju-gui/syncMenu |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
185 lines (+28/-48) 5 files modified
app/index.html (+4/-6) app/views/environment.js (+5/-0) app/views/topology/service.js (+13/-25) test/test_environment_view.js (+5/-5) test/test_service_module.js (+1/-12) |
To merge this branch: | bzr merge lp://staging/~gary/juju-gui/syncMenu |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
Sync relation menu with inspector open and close
While the relation menu is going away soonish, if the plans are to be believed, meanwhile it is what we have. This branch makes it so that when the inspector is first opened--after a ghost or when you click on a service--the relation menu appears. Similarly, when you close the inspector, relation menus close.
It is still possible to hide the relation menu while the inspector is open. If you begin to create a relation, the option will disappear; and if you click the canvas it will disappear. These seem like pretty good interactions for me, given the fundamental oddity (to me) of having the relation menu and the inspector separate entities, at least given the current design.
Reviewers: mp+186107_ code.launchpad. net,
Message:
Please take a look.
Description:
Sync relation menu with inspector open and close
While the relation menu is going away soonish, if the plans are to be
believed, meanwhile it is what we have. This branch makes it so that
when the inspector is first opened--after a ghost or when you click on a
service--the relation menu appears. Similarly, when you close the
inspector, relation menus close.
It is still possible to hide the relation menu while the inspector is
open. If you begin to create a relation, the option will disappear; and
if you click the canvas it will disappear. These seem like pretty good
interactions for me, given the fundamental oddity (to me) of having the
relation menu and the inspector separate entities, at least given the
current design.
https:/ /code.launchpad .net/~gary/ juju-gui/ syncMenu/ +merge/ 186107
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13583044/
Affected files (+30, -48 lines): environment. js topology/ service. js environment_ view.js service_ module. js
A [revision details]
M app/index.html
M app/views/
M app/views/
M test/test_
M test/test_
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: app/index.html /fonts. googleapis. com/css? family= Ubuntu+ Mono:400, 700| 300,400, 500,300italic, 400italic, 500italic' rel='stylesheet' favicon. ico"> juju-ui/ assets/ combined- css/all- static. css?reload= temporary" > juju-ui/ assets/ juju-gui. css?reload= temporary" > juju-ui/ assets/ combined- css/all- static. css"> juju-ui/ assets/ juju-gui. css"> juju-ui/ assets/ sprites. css"> ui/assets/ all-yui. js?reload= temporary" ></script> ui/assets/ modules. js?reload= temporary" ></script> ui/assets/ all-yui. js"></script> ui/assets/ modules. js"></script>
=== modified file 'app/index.html'
--- app/index.html 2013-09-12 18:15:47 +0000
+++ app/index.html 2013-09-17 15:44:32 +0000
@@ -39,9 +39,8 @@
<meta name="author" content="Juju team">
<link
href='https:/
Ubuntu:
type='text/css'>
<link rel="shortcut icon" href="/
- <!-- Remove the query strings below after release 0.9.0. -->
- <link rel="stylesheet"
href="/
- <link rel="stylesheet"
href="/
+ <link rel="stylesheet"
href="/
+ <link rel="stylesheet" href="/
<link rel="stylesheet" href="/
<!-- Make sure the config is loaded before other JS for use in the page
below.
@@ -363,9 +362,8 @@
because we want the browser warning to execute before spending the
time
to download an app the user might not be able to use anyway.
-->
- <!-- Remove the query strings below after release 0.9.0. -->
- <script src="/juju-
- <script src="/juju-
+ <script src="/juju-
+ <script src="/juju-
<script>
// Now that all of the above JS is loaded we can define the real
start
// function which will be picked up by the setTimeout, and the ...