diff --git a/static/js/directives/ui/manage-trigger/manage-trigger.component.css b/static/js/directives/ui/manage-trigger/manage-trigger.component.css new file mode 100644 index 000000000..fabda654e --- /dev/null +++ b/static/js/directives/ui/manage-trigger/manage-trigger.component.css @@ -0,0 +1,18 @@ +.gh-button { + color: #0366d6; + background-color: #fff; + padding: 3px 10px; + font-size: 12px; + border: 1px solid rgba(27,31,35,0.2); + border-radius: 0.25em; +} + +.gh-grant-message { + font-size: 16px; + margin-top: 20px; +} + +.gh-grant-message b { + display: block; + margin-bottom: 10px; +} diff --git a/static/js/directives/ui/manage-trigger/manage-trigger.component.html b/static/js/directives/ui/manage-trigger/manage-trigger.component.html index 913beb3c9..957516c57 100644 --- a/static/js/directives/ui/manage-trigger/manage-trigger.component.html +++ b/static/js/directives/ui/manage-trigger/manage-trigger.component.html @@ -61,8 +61,8 @@

has been granted access to read and view these {{ $ctrl.namespaceTitle }}s.

-

- Don't see an expected {{ $ctrl.namespaceTitle }} here? Please make sure third-party access is enabled for under that {{ $ctrl.namespaceTitle }}. +

+ Don't see an expected organization here?Please visit Connections with and choose Grant or Request before reloading this page.

diff --git a/static/js/directives/ui/manage-trigger/manage-trigger.component.ts b/static/js/directives/ui/manage-trigger/manage-trigger.component.ts index 9b4797533..5f04e656b 100644 --- a/static/js/directives/ui/manage-trigger/manage-trigger.component.ts +++ b/static/js/directives/ui/manage-trigger/manage-trigger.component.ts @@ -3,6 +3,7 @@ import * as moment from 'moment'; import { Local, Trigger, TriggerConfig, Repository, Namespace } from '../../../types/common.types'; import { ContextChangeEvent } from '../context-path-select/context-path-select.component'; import { PathChangeEvent } from '../dockerfile-path-select/dockerfile-path-select.component'; +import './manage-trigger.component.css'; /** @@ -37,13 +38,17 @@ export class ManageTriggerComponent implements OnChanges { private namespaceTitle: string; private namespace: any; private buildSource: string; + private githubTriggerEndpoint: string; + private githubTriggerClientId: string; constructor(@Inject('ApiService') private apiService: any, @Inject('TableService') private tableService: any, @Inject('TriggerService') private triggerService: any, @Inject('RolesService') private rolesService: any, + @Inject('KeyService') private keyService: any, @Inject('$scope') private $scope: ng.IScope) { - + this.githubTriggerEndpoint = keyService['githubTriggerEndpoint']; + this.githubTriggerClientId = keyService['githubTriggerClientId']; } public ngOnChanges(changes: SimpleChanges): void {