mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Added translate to everything.
Added new version update modal.
This commit is contained in:
parent
1e0a145490
commit
6b67d66a93
22 changed files with 157 additions and 89 deletions
|
@ -0,0 +1,39 @@
|
|||
module.exports = function FatalMessageServiceFactory($modal, $location, $route) {
|
||||
var FatalMessageService = {}
|
||||
|
||||
|
||||
var ModalInstanceCtrl = function ($scope, $modalInstance, device) {
|
||||
$scope.ok = function () {
|
||||
$modalInstance.close(true)
|
||||
$route.reload()
|
||||
//$location.path('/control/' + device.serial)
|
||||
}
|
||||
|
||||
$scope.second = function () {
|
||||
$modalInstance.dismiss()
|
||||
$location.path('/devices/')
|
||||
}
|
||||
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel')
|
||||
}
|
||||
}
|
||||
|
||||
FatalMessageService.open = function (device) {
|
||||
var modalInstance = $modal.open({
|
||||
template: require('./fatal-message.jade'),
|
||||
controller: ModalInstanceCtrl,
|
||||
resolve: {
|
||||
device: device
|
||||
}
|
||||
})
|
||||
|
||||
modalInstance.result.then(function (selectedItem) {
|
||||
}, function () {
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
return FatalMessageService
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue