
With this patch users can list their own test results. Change-Id: Ie2d944924f6ae966a13d0ca9908810c315ade5ab
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
var refstackApp = angular.module('refstackApp');
|
|
|
|
refstackApp.factory('raiseAlert',
|
|
['$modal', function($modal) {
|
|
'use strict';
|
|
return function(mode, title, text) {
|
|
$modal.open({
|
|
templateUrl: '/shared/alerts/alertModal.html',
|
|
controller: 'raiseAlertModalController',
|
|
backdrop: true,
|
|
keyboard: true,
|
|
backdropClick: true,
|
|
size: 'md',
|
|
resolve: {
|
|
data: function () {
|
|
return {
|
|
mode: mode,
|
|
title: title,
|
|
text: text
|
|
};
|
|
}
|
|
}
|
|
});
|
|
};
|
|
}]
|
|
);
|
|
|
|
|
|
refstackApp.controller('raiseAlertModalController',
|
|
['$scope', '$modalInstance', '$interval', 'data',
|
|
function ($scope, $modalInstance, $interval, data) {
|
|
'use strict';
|
|
$scope.data = data;
|
|
$scope.close = function() {
|
|
$modalInstance.close();
|
|
};
|
|
$interval(function(){
|
|
$scope.close();
|
|
}, 3000, 1);
|
|
}
|
|
]
|
|
);
|