1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00
OpenSTF/res/app/components/stf/common-ui/modals/version-update/version-update-service.js
Gunther Brunner 6b67d66a93 Added translate to everything.
Added new version update modal.
2014-05-28 15:58:18 +09:00

27 lines
623 B
JavaScript

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
}