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
path: root/js/app
diff options
context:
space:
mode:
authorfnuesse <felix.nuesse@t-online.de>2019-01-12 01:29:34 +0300
committerfnuesse <felix.nuesse@t-online.de>2019-01-12 01:29:34 +0300
commit78fcc587758df069dfe7e3c10196567588c04a67 (patch)
treee5c41801c7056ee9f64ed2b9f0ff7a1a9ef53eb5 /js/app
parent216c8ff8b55aa6ec2bddcfb82efcb8acd8afa66b (diff)
only show url-button on url-field
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'js/app')
-rw-r--r--js/app/directives/credentialfield.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/app/directives/credentialfield.js b/js/app/directives/credentialfield.js
index 3b0aabf3..d59bbf9b 100644
--- a/js/app/directives/credentialfield.js
+++ b/js/app/directives/credentialfield.js
@@ -37,6 +37,7 @@
secret: '=secret',
inputField: '=useInput',
inputFieldplaceholder: '=inputPlaceholder',
+ isURLFIELD: '=url',
},
restrict: 'A',
replace: 'true',
@@ -49,8 +50,8 @@
'</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>' +
- '<div class="cell" ng-if="isLink"><a ng-href="{{value}}" target="_blank" rel="nofollow noopener noreferrer"><i tooltip="\'Open in new window\'" class="link fa fa-external-link"></i></a></div>' +
- '<div class="cell" ng-if="isPartialLink"><a ng-href="//{{value}}" target="_blank" rel="nofollow noopener noreferrer"><i tooltip="\'Open in new window\'" class="link fa fa-external-link"></i></a></div>' +
+ '<div class="cell" ng-if="url && isLink"><a ng-href="{{value}}" target="_blank" rel="nofollow noopener noreferrer"><i tooltip="\'Open in new window\'" class="link fa fa-external-link"></i></a></div>' +
+ '<div class="cell" ng-if="url && isPartialLink"><a ng-href="//{{value}}" target="_blank" rel="nofollow noopener noreferrer"><i tooltip="\'Open in new window\'" class="link fa fa-external-link"></i></a></div>' +
'<div class="cell" ngclipboard-success="onSuccess(e);" ngclipboard-error="onError(e);" ngclipboard data-clipboard-text="{{value}}"><i tooltip="copy_msg" class="fa fa-files-o"></i></div>' +
'</div></span>',
link: function (scope) {