1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

allow user to create an access token to access stf api from user settings tab.

This commit is contained in:
Vishal Banthia 2015-11-19 19:50:33 +09:00
parent ddc24e5dc5
commit 62413b3780
21 changed files with 263 additions and 65 deletions

View file

@ -0,0 +1,26 @@
module.exports = function generateAccessTokenDirective() {
return {
restrict: 'EA',
replace: true,
scope: {
showGenerate: '=',
showClipboard: '=',
},
template: require('./generate-access-token.jade'),
controller: function($scope, UserService) {
$scope.generateForm = {
title: ''
}
$scope.generateToken = function () {
UserService.generateAccessToken($scope.generateForm.title)
$scope.closeGenerateToken()
}
$scope.closeGenerateToken = function () {
$scope.title = ''
$scope.showGenerate = false
}
}
}
}