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 .modal-body').html(_self.clientSavedTemplate(_self.model.toJSON()));
|
||||||
|
|
||||||
|
$('#modalAlert').on('click', '#clientSaveShow', function(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
$('#clientSaveShow').hide();
|
||||||
|
$('#savedClientSecret').show();
|
||||||
|
});
|
||||||
|
|
||||||
$('#modalAlert').modal({
|
$('#modalAlert').modal({
|
||||||
'backdrop': 'static',
|
'backdrop': 'static',
|
||||||
'keyboard': true,
|
'keyboard': true,
|
||||||
|
|
|
@ -655,7 +655,7 @@
|
||||||
</div>
|
</div>
|
||||||
<% if (generateClientSecret && clientSecret != null && clientSecret != '') { %>
|
<% if (generateClientSecret && clientSecret != null && clientSecret != '') { %>
|
||||||
<div>
|
<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>
|
</div>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in New Issue