iu
This commit is contained in:
parent
5a2c2ff573
commit
77efe1eae7
5 changed files with 6 additions and 37 deletions
|
|
@ -54,7 +54,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox-container">
|
<div class="checkbox-container">
|
||||||
<div class="checkbox" style="margin-top: 12px">
|
<div class="checkbox" style="margin-top: 12px">
|
||||||
<input type="checkbox" id="backup" />
|
<input type="radio" id="backup" name="backup-option" />
|
||||||
<div class="checkbox-shape"></div>
|
<div class="checkbox-shape"></div>
|
||||||
<label for="backup">
|
<label for="backup">
|
||||||
Encrypted Backup to Nostr Relay
|
Encrypted Backup to Nostr Relay
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox-container">
|
<div class="checkbox-container">
|
||||||
<div class="checkbox manual-checkbox" style="margin-top: 12px">
|
<div class="checkbox manual-checkbox" style="margin-top: 12px">
|
||||||
<input type="checkbox" id="manual-backup" />
|
<input type="radio" id="manual-backup" name="backup-option" />
|
||||||
<div class="checkbox-shape"></div>
|
<div class="checkbox-shape"></div>
|
||||||
<label for="manual-backup">
|
<label for="manual-backup">
|
||||||
DO NOT store on relay (Manual Backups)
|
DO NOT store on relay (Manual Backups)
|
||||||
|
|
@ -126,10 +126,6 @@
|
||||||
document.getElementById('errorText').innerText = 'Please select an option'
|
document.getElementById('errorText').innerText = 'Please select an option'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (backup && manual) {
|
|
||||||
document.getElementById('errorText').innerText = 'Please select only one option'
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (backup) {
|
if (backup) {
|
||||||
localStorage.setItem('wizard/backup', 'backup')
|
localStorage.setItem('wizard/backup', 'backup')
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 6.1 KiB |
|
|
@ -1,23 +1,10 @@
|
||||||
$(() => {
|
$(() => {
|
||||||
let backup; let manual_backup;
|
$('input[name="backup-option"]').change(() => {
|
||||||
$("#backup").click(() => {
|
|
||||||
backup = $("#backup").prop("checked");
|
|
||||||
$('#manual-backup').prop("checked",false);
|
|
||||||
const nextButton = $("#next-button");
|
const nextButton = $("#next-button");
|
||||||
if (backup) {
|
if ($('input[name="backup-option"]:checked').length > 0) {
|
||||||
nextButton.removeClass("hidden-button");
|
nextButton.removeClass("hidden-button");
|
||||||
} else {
|
} else {
|
||||||
nextButton.addClass("hidden-button");
|
nextButton.addClass("hidden-button");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#manual-backup").click(()=>{
|
|
||||||
manual_backup = $('#manual-backup').prop("checked");
|
|
||||||
$("#backup").prop("checked",false);
|
|
||||||
const nextButton = $("#next-button");
|
|
||||||
if(manual_backup) {
|
|
||||||
nextButton.removeClass("hidden-button");
|
|
||||||
} else {
|
|
||||||
nextButton.addClass("hidden-button");
|
|
||||||
};
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,4 @@ $(() => {
|
||||||
$("#close-question").click(() => {
|
$("#close-question").click(() => {
|
||||||
$("#question-content").hide();
|
$("#question-content").hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#automate").click(() => {
|
|
||||||
$('[data-group="service"]').prop("checked", false);
|
|
||||||
$("#automate").prop("checked", true);
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#manual").click(() => {
|
|
||||||
$('[data-group="service"]').prop("checked", false);
|
|
||||||
$("#manual").prop("checked", true);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
<section class="setup-content">
|
<section class="setup-content">
|
||||||
<div class="checkbox" style="margin-top: 60px">
|
<div class="checkbox" style="margin-top: 60px">
|
||||||
<input type="checkbox" id="automate" data-group="service" />
|
<input type="radio" id="automate" name="service" data-group="service" />
|
||||||
<div class="checkbox-shape"></div>
|
<div class="checkbox-shape"></div>
|
||||||
<label for="automate" class="automate">
|
<label for="automate" class="automate">
|
||||||
Use Automation Service
|
Use Automation Service
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox" style="margin-top: 30px">
|
<div class="checkbox" style="margin-top: 30px">
|
||||||
<input type="checkbox" id="manual" data-group="service" />
|
<input type="radio" id="manual" name="service" data-group="service" />
|
||||||
<div class="checkbox-shape"></div>
|
<div class="checkbox-shape"></div>
|
||||||
<label for="manual">Manage my channels manually</label>
|
<label for="manual">Manage my channels manually</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -91,10 +91,6 @@
|
||||||
document.getElementById('errorText').innerText = 'Please select an option'
|
document.getElementById('errorText').innerText = 'Please select an option'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (automate && manual) {
|
|
||||||
document.getElementById('errorText').innerText = 'Please select only one option'
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (automate) {
|
if (automate) {
|
||||||
localStorage.setItem('wizard/liquidity', 'automate')
|
localStorage.setItem('wizard/liquidity', 'automate')
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue