mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +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,27 @@
|
|||
module.exports = function FatalMessageServiceFactory($modal, $location, socket) {
|
||||
var service = {}
|
||||
|
||||
var ModalInstanceCtrl = function ($scope, $modalInstance, device) {
|
||||
$scope.ok = function () {
|
||||
$modalInstance.close(true)
|
||||
$location.path('/')
|
||||
}
|
||||
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel')
|
||||
}
|
||||
}
|
||||
|
||||
service.open = function () {
|
||||
var modalInstance = $modal.open({
|
||||
template: require('./version-update.jade'),
|
||||
controller: ModalInstanceCtrl
|
||||
})
|
||||
|
||||
modalInstance.result.then(function (selectedItem) {
|
||||
}, function () {
|
||||
})
|
||||
}
|
||||
|
||||
return service
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue