(Added) better label prompt for choosing labels.

This commit is contained in:
2023-03-25 16:29:42 +02:00
parent cb5b4fae29
commit 204898d34f
3 changed files with 27 additions and 13 deletions
+1 -11
View File
@@ -47,16 +47,6 @@ def add(
question = "Would you like to change [yellow b]the group label[/]?"
group_label = LabelPrompt.ask_uuid(question)
labels = []
while True:
is_empty = count_all_labels_except(labels) == 0
if is_empty:
break
is_fzf = Confirm.ask("Would you like to add a source to the group? ",
default=True)
if not is_fzf:
break
option = LabelPrompt.get_label_except_fzf(labels)
labels.append(option)
labels = LabelPrompt.get_labels()
Group.create_save(group_label, labels)