From 215c3c87e5d60bc8fb978cd2e8cc4182a2c0e830 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Tue, 12 Mar 2019 20:27:15 -0400 Subject: [PATCH] enable input source linking for secret textarea fields --- .../input/textarea-secret.directive.js | 7 ++ .../input/textarea-secret.partial.html | 75 +++++++++++++------ 2 files changed, 59 insertions(+), 23 deletions(-) diff --git a/awx/ui/client/lib/components/input/textarea-secret.directive.js b/awx/ui/client/lib/components/input/textarea-secret.directive.js index 54f13d045f..fb4b29d870 100644 --- a/awx/ui/client/lib/components/input/textarea-secret.directive.js +++ b/awx/ui/client/lib/components/input/textarea-secret.directive.js @@ -93,6 +93,13 @@ function AtInputTextareaSecretController (baseInputController, eventService) { input.value = ''; }); }; + + vm.onLookupClick = () => { + if (scope.state._onInputLookup) { + const { id, label, required, type } = scope.state; + scope.state._onInputLookup({ id, label, required, type }); + } + }; } AtInputTextareaSecretController.$inject = [ diff --git a/awx/ui/client/lib/components/input/textarea-secret.partial.html b/awx/ui/client/lib/components/input/textarea-secret.partial.html index 2ae5bb9e76..0b5db6c0db 100644 --- a/awx/ui/client/lib/components/input/textarea-secret.partial.html +++ b/awx/ui/client/lib/components/input/textarea-secret.partial.html @@ -1,32 +1,61 @@
- -
-
- +
+ +
+
+ +
+
+
-