
Users can upload, delete and retrieve list of their public keys. User can upload test result with any public keys without any connection with uploading public keys in Refstack. It means that you can upload signed test results and upload public key later. Also, it means that deleting public key doesn't mean deleting results signed with this key. Change-Id: Idc418c4c90221740eef04fcf498d7071a4446b9c
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: '/components/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);
|
|
}
|
|
]
|
|
);
|