mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
fix(gui): reflect folder password visibility by changing button icon (#9857)
Make the "toggle password visibility" button on encrypted folders change its icon from `fa-eye` to `fa-eye-slash` while the password is visible.
This commit is contained in:
parent
d9ce7c3166
commit
479c0d3f16
@ -36,7 +36,7 @@
|
||||
</span>
|
||||
<span ng-switch="selected[id] && folderType !== 'receiveencrypted'" class="input-group-addon">
|
||||
<span ng-switch-when='true'>
|
||||
<span class="button fas fa-fw fa-eye" ng-click="togglePasswordVisibility()"></span>
|
||||
<span class="button fas fa-fw {{plain ? 'fa-eye-slash' : 'fa-eye'}}" ng-click="togglePasswordVisibility()"></span>
|
||||
</span>
|
||||
<span ng-switch-default>
|
||||
<span class="button fas fa-fw fa-eye" disabled></span>
|
||||
|
@ -3703,7 +3703,6 @@ angular.module('syncthing.core')
|
||||
untrusted: '=',
|
||||
},
|
||||
link: function (scope, elem, attrs) {
|
||||
var plain = false;
|
||||
scope.togglePasswordVisibility = function() {
|
||||
scope.plain = !scope.plain;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user