From 0ed5581ccaa2b2b3e4b77f8d21bab04fba2b5e53 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 5 Jan 2026 13:55:42 -0600 Subject: [PATCH] func.cpp --- index.html | 10 ++++++---- src/func.cpp | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 8eae23b5..71cc639d 100644 --- a/index.html +++ b/index.html @@ -204,7 +204,6 @@ background-color: #616161; } .branch-move-btn:disabled { - opacity: 0.3; cursor: not-allowed; } .branch-entry { @@ -222,12 +221,11 @@ box-shadow: 0 2px 8px rgba(0,0,0,0.3); } .branch-entry.dragging { - opacity: 0.5; cursor: grabbing; box-shadow: 0 4px 12px rgba(0,0,0,0.5); } .branch-entry.drag-over { - border-top: 2px solid #1565c0; + border: 2px solid #1565c0; } .mount-list-item { padding: 10px; @@ -632,7 +630,11 @@ headers: {'Content-Type': 'application/json'}, body: JSON.stringify(branchesStr) }).then(response => { - if (!response.ok) { + if(response.ok) { + const msg = 'branches updated' + showToast(msg,true); + loadMounts(); + } else { response.text().then(body => { alert('Status: ' + response.status + '\nBody: ' + body); }); diff --git a/src/func.cpp b/src/func.cpp index 1368de4d..e113cf8f 100644 --- a/src/func.cpp +++ b/src/func.cpp @@ -22,6 +22,9 @@ int Func::Base::Action::from_string(const std::string_view policyname_) { + Policy::Action new_policy; + + policy = Policies::Action::find(policyname_); if(!policy) return -EINVAL;