Skip to content

Commit

Permalink
Separate token span
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbutenaers committed Feb 20, 2019
1 parent a3a5dba commit 44b7478
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -61,8 +61,7 @@
<input type="text" id="node-input-user">
</div>
<div class="form-row">
<label for="node-input-password" id="node-label-password"><i class="fa fa-lock"></i> <span data-i18n="common.label.password"></span></label>
<label for="node-input-password" id="node-label-token" class="hide"> <i class="fa fa-lock"></i> <span data-i18n="httpin.label.bearerToken"></span></label>
<label for="node-input-password"> <i class="fa fa-lock"></i> <span data-i18n="common.label.password" id="node-span-password"></span><span data-i18n="httpin.label.bearerToken" id="node-span-token" style="hide"></span></label>
<input type="password" id="node-input-password">
</div>
</div>
Expand Down Expand Up @@ -139,12 +138,12 @@
$("#node-input-authType").change(function() {
if ($(this).val() == "basic" || $(this).val() == "digest") {
$(".node-input-basic-row").show();
$('#node-label-password').show();
$('#node-label-token').hide();
$('#node-span-password').show();
$('#node-span-token').hide();
} else if ($(this).val() == "bearer") {
$(".node-input-basic-row").hide();
$('#node-label-password').hide();
$('#node-label-token').show();
$('#node-span-password').hide();
$('#node-span-token').show();
$('#node-input-user').val('');
}
});
Expand Down

0 comments on commit 44b7478

Please sign in to comment.