Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2017-01-29 15:59:24 +0300
committerbrantje <brantje@gmail.com>2017-01-29 17:00:39 +0300
commit39bd0d8b205219db71e5b924854407734cc824db (patch)
tree1de1f55cbb690293075806c425236d6849866d3a /js/app/directives
parente0a6ced85d0de2495c81cdad107c0018a4f4a0d4 (diff)
Fix OTP not working
Fix [Object object] for file fields. Add a copy icon to share link Signed-off-by: brantje <brantje@gmail.com>
Diffstat (limited to 'js/app/directives')
-rw-r--r--js/app/directives/credentialfield.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/js/app/directives/credentialfield.js b/js/app/directives/credentialfield.js
index 1cee2e22..8d509830 100644
--- a/js/app/directives/credentialfield.js
+++ b/js/app/directives/credentialfield.js
@@ -34,15 +34,18 @@
return {
scope: {
value: '=value',
- secret: '=secret'
+ secret: '=secret',
+ inputField: '=useInput',
+ inputFieldplaceholder: '=inputPlaceholder'
},
restrict: 'A',
replace: 'true',
template: "" +
'<span class="credential_field">' +
'<div class="value" ng-class="{\'ellipsis\': isLink}">' +
- '<span ng-repeat="n in [] | range:value.length" ng-if="!valueVisible">*</span>' +
- '<span ng-if="valueVisible" ng-bind-html="value"></span>' +
+ '<span ng-if="secret"><span ng-repeat="n in [] | range:value.length" ng-if="!valueVisible">*</span></span>' +
+ '<span ng-if="valueVisible && !inputField" ng-bind-html="value"></span>' +
+ '<span ng-if="valueVisible && inputField"><input type="text" ng-model="value" select-on-click placeholder="{{ inputFieldplaceholder }}!"</span>' +
'</div>' +
'<div class="tools">' +
'<div class="cell" ng-if="toggle" tooltip="tggltxt" ng-click="toggleVisibility()"><i class="fa" ng-class="{\'fa-eye\': !valueVisible, \'fa-eye-slash\': valueVisible }"></i></div>' +