mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-02-13 10:11:53 +00:00
25 lines
537 B
JavaScript
25 lines
537 B
JavaScript
'use strict';
|
|
|
|
import angular from 'angular';
|
|
|
|
export function OauthButtonsController($window) {
|
|
'ngInject';
|
|
|
|
this.loginOauth = function(provider) {
|
|
$window.location.href = `/auth/${provider}`;
|
|
};
|
|
}
|
|
|
|
export default angular.module('app2App.oauthButtons', [])
|
|
.directive('oauthButtons', function() {
|
|
return {
|
|
template: require('./oauth-buttons.html'),
|
|
restrict: 'EA',
|
|
controller: OauthButtonsController,
|
|
controllerAs: 'OauthButtons',
|
|
scope: {
|
|
classes: '@'
|
|
}
|
|
};
|
|
})
|
|
.name;
|