🐛 Fixes removing note not working
This commit is contained in:
+2
-7
@@ -154,15 +154,10 @@ pub fn update(vault: &String, item: LoginItem, user_is_actually_email: bool) {
|
||||
} else {
|
||||
"".to_string()
|
||||
};
|
||||
let maybe_notes = if item.notes.is_empty() {
|
||||
"".to_string()
|
||||
} else {
|
||||
format!("--field 'note={}'", item.notes)
|
||||
};
|
||||
|
||||
let cmd = format!(
|
||||
"{} item update --vault-name '{}' --item-id '{}' --field 'password={}' --field '{}' {} {}",
|
||||
EXECUTABLE, vault, item.id, item.password, user_field_update, maybe_urls, maybe_notes
|
||||
"{} item update --vault-name '{}' --item-id '{}' --field 'password={}' --field '{}' --field 'note={}' {}",
|
||||
EXECUTABLE, vault, item.id, item.password, user_field_update, item.notes, maybe_urls
|
||||
);
|
||||
let output = sh::sh(cmd.clone());
|
||||
println!("> {}", output);
|
||||
|
||||
Reference in New Issue
Block a user