GUAC-973: Replace back button with home button where necessary.

This commit is contained in:
Michael Jumper
2015-01-04 13:00:24 -08:00
parent 02eec645f7
commit 0e7fed21f7
7 changed files with 17 additions and 31 deletions

View File

@@ -126,10 +126,10 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
/**
* Action which returns the user to the home screen.
*/
var NAVIGATE_BACK_ACTION = {
name : "CLIENT.ACTION_NAVIGATE_BACK",
className : "back button",
callback : function navigateBackCallback() {
var NAVIGATE_HOME_ACTION = {
name : "CLIENT.ACTION_NAVIGATE_HOME",
className : "home button",
callback : function navigateHomeCallback() {
$location.path('/');
}
};
@@ -415,7 +415,7 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
title: "CLIENT.DIALOG_HEADER_CONNECTION_ERROR",
text: "CLIENT.ERROR_CLIENT_" + errorName,
countdown: countdown,
actions: [ NAVIGATE_BACK_ACTION, RECONNECT_ACTION ]
actions: [ NAVIGATE_HOME_ACTION, RECONNECT_ACTION ]
});
}
@@ -435,7 +435,7 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
title: "CLIENT.DIALOG_HEADER_CONNECTION_ERROR",
text: "CLIENT.ERROR_TUNNEL_" + errorName,
countdown: countdown,
actions: [ NAVIGATE_BACK_ACTION, RECONNECT_ACTION ]
actions: [ NAVIGATE_HOME_ACTION, RECONNECT_ACTION ]
});
}
@@ -445,7 +445,7 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
$scope.showStatus({
title: "CLIENT.DIALOG_HEADER_DISCONNECTED",
text: "CLIENT.TEXT_CLIENT_STATUS_" + connectionState.toUpperCase(),
actions: [ NAVIGATE_BACK_ACTION, RECONNECT_ACTION ]
actions: [ NAVIGATE_HOME_ACTION, RECONNECT_ACTION ]
});
}

View File

@@ -56,7 +56,7 @@
<div ng-class="{open: menuShown}" id="menu" guac-touch-drag="menuDrag" guac-scroll="menuScrollState">
<div class="logout-panel">
<a class="back button" href="#/">{{'CLIENT.ACTION_NAVIGATE_BACK' | translate}}</a>
<a class="home button" href="#/">{{'CLIENT.ACTION_NAVIGATE_HOME' | translate}}</a>
<a class="disconnect danger button" ng-click="disconnect()">{{'CLIENT.ACTION_DISCONNECT' | translate}}</a>
</div>
<h2>{{client.name}}</h2>

View File

@@ -73,7 +73,7 @@ button.danger:active, a.button.danger:active {
background: #932;
}
.button.logout, .button.manage, .button.back {
.button.logout, .button.manage, .button.back, .button.home {
background-repeat: no-repeat;
background-size: 1em;
background-position: 0.5em 0.45em;
@@ -91,3 +91,7 @@ button.danger:active, a.button.danger:active {
.button.back {
background-image: url('images/action-icons/guac-back.png');
}
.button.home {
background-image: url('images/action-icons/guac-home.png');
}

View File

@@ -398,22 +398,3 @@ div.logout-panel {
text-align: center;
margin: 1em;
}
.button.logout, .button.manage, .button.back {
background-repeat: no-repeat;
background-size: 1em;
background-position: 0.5em 0.45em;
padding-left: 1.8em;
}
.button.logout {
background-image: url('images/action-icons/guac-logout.png');
}
.button.manage {
background-image: url('images/action-icons/guac-config.png');
}
.button.back {
background-image: url('images/action-icons/guac-back.png');
}

View File

@@ -21,7 +21,7 @@ THE SOFTWARE.
-->
<div class="logout-panel">
<a class="back button" href="#/">{{'MANAGE.ACTION_NAVIGATE_BACK' | translate}}</a>
<a class="home button" href="#/">{{'MANAGE.ACTION_NAVIGATE_HOME' | translate}}</a>
<a class="logout button" ng-click="logout()">{{'MANAGE.ACTION_LOGOUT' | translate}}</a>
</div>