Separate tooltips for Remote Debug

This commit is contained in:
Gunther Brunner
2014-08-28 16:08:43 +09:00
parent a2292c9b0f
commit c318cddd14
3 changed files with 18 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
module.exports = function RemoteDebugCtrl($scope, $timeout) {
module.exports = function RemoteDebugCtrl($scope, $timeout, gettext) {
function startRemoteConnect() {
if ($scope.control) {
$scope.control.startRemoteConnect().then(function (result) {
@@ -21,4 +21,17 @@ module.exports = function RemoteDebugCtrl($scope, $timeout) {
}
}, 200)
}
$scope.$watch('platform', function (newValue) {
console.log('newValue', newValue)
if (newValue === 'native') {
$scope.remoteDebugTooltip =
gettext('Run the following on your command line to debug the device from your IDE')
} else {
$scope.remoteDebugTooltip =
gettext('Run the following on your command line to debug the device from your Browser')
}
})
}