mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
(Added) better label prompt for choosing labels.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user