Skip to content

Commit

Permalink
✏️ Little visual change on backup config modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebclem committed Jan 8, 2021
1 parent fce90f0 commit 5bcd0b4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,8 @@ function getBackupSettings() {
$('#cron-drop-day').val(data.settings.cron_weekday);
let folder_html = ""
for (let thisFolder of data.folders) {
//TODO Bug ici ?
let exclude = data.settings.exclude_folder.includes(thisFolder.slug);
folder_html += `<li class="list-group-item"><div class="form-check"><input class="form-check-input addons-box" type="checkbox" id="${thisFolder.slug}" ${exclude ? "" : "checked"}><label class="form-label mb-0" for="${thisFolder.slug}">${thisFolder.name}</label></div></li>`
folder_html += `<li class="list-group-item"><div class="form-check"><input class="form-check-input folders-box" type="checkbox" id="${thisFolder.slug}" ${exclude ? "" : "checked"}><label class="form-label mb-0" for="${thisFolder.slug}">${thisFolder.name}</label></div></li>`
}
$("#folders-div").html(folder_html);

Expand Down Expand Up @@ -407,7 +406,6 @@ function sendBackupSettings() {
let auto_clean_local_keep = $("#local-snap-keep").val();
let auto_clean_backup_keep = $("#backup-snap-keep").val();
let name_template = $('#name-template').val();
//TODO Bug ici ?
let excluded_folders_nodes = document.querySelectorAll('.folders-box:not(:checked)');
let exclude_folder = [""];
for (let i of excluded_folders_nodes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,12 @@ $alert-color-scale: -100%;

input[type="time"]::-webkit-calendar-picker-indicator {
filter: invert(63%) sepia(23%) saturate(819%) hue-rotate(358deg) brightness(88%) contrast(91%);
height: 30px;
margin: -12px;
width: 32px;
}
input[type="time"]::-webkit-calendar-picker-indicator:hover {
cursor: pointer;
}


Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
</div>

</div>
<div class="modal-footer blue-grey darken-4">
<div class="modal-footer border-secondary">
<button data-bs-dismiss="modal" class="btn btn-danger"><b>Cancel</b></button>
<button class="btn btn-success" id="save-backup-settings"><b>Save</b></button>

Expand Down

0 comments on commit 5bcd0b4

Please sign in to comment.