wiz status check
This commit is contained in:
parent
6da5577b27
commit
0f5be06e94
5 changed files with 74 additions and 4 deletions
|
|
@ -34,6 +34,11 @@ $(() => {
|
|||
$("#reset-box").show();
|
||||
$('.continue-button').attr('id', 'set-show-nostr');
|
||||
});
|
||||
$("#show-avatar").click(() => {
|
||||
$('.show-avatar').show()
|
||||
$('#show-avatar-text').hide()
|
||||
$('input[name="show-avatar"]').focus();
|
||||
});
|
||||
$("#show-nodey").click(() => {
|
||||
$('.show-nodey').show()
|
||||
$('#show-nodey-text').hide()
|
||||
|
|
@ -73,6 +78,21 @@ $(() => {
|
|||
$('#show-nostr-text').show()
|
||||
})
|
||||
})
|
||||
$("#save-show-avatar").click(() => {
|
||||
var targetInputVal = $('input[name="show-avatar"]').val()
|
||||
postConfig({ avatar_url: targetInputVal }).then(ok => {
|
||||
if (ok) {
|
||||
$('#show-avatar-text').text(targetInputVal || '—')
|
||||
if (targetInputVal) { $('#avatarImg').attr('src', targetInputVal) }
|
||||
}
|
||||
$('.show-avatar').hide()
|
||||
$('#show-avatar-text').show()
|
||||
})
|
||||
})
|
||||
$("#cancel-show-avatar").click(() => {
|
||||
$('.show-avatar').hide()
|
||||
$('#show-avatar-text').show()
|
||||
})
|
||||
$("#cancel-show-nostr").click(() => {
|
||||
$('.show-nostr').hide()
|
||||
$('#show-nostr-text').show()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue