hide client secret until clicked, closes #517
parent
15f4b0abd2
commit
f559673090
|
@ -564,6 +564,12 @@ var ClientFormView = Backbone.View.extend({
|
|||
|
||||
$('#modalAlert .modal-body').html(_self.clientSavedTemplate(_self.model.toJSON()));
|
||||
|
||||
$('#modalAlert').on('click', '#clientSaveShow', function(event) {
|
||||
event.preventDefault();
|
||||
$('#clientSaveShow').hide();
|
||||
$('#savedClientSecret').show();
|
||||
});
|
||||
|
||||
$('#modalAlert').modal({
|
||||
'backdrop': 'static',
|
||||
'keyboard': true,
|
||||
|
|
|
@ -655,7 +655,7 @@
|
|||
</div>
|
||||
<% if (generateClientSecret && clientSecret != null && clientSecret != '') { %>
|
||||
<div>
|
||||
<strong>Secret:</strong> <code><%= clientSecret %></code>
|
||||
<strong>Secret:</strong> <button class="btn btn-mini" id="clientSaveShow">Show Secret</button><code id="savedClientSecret" class="hide" style="word-wrap: break-word;"><%= clientSecret %></code>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue