mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
config/questions: fix alert display in cli
This commit is contained in:
parent
88da178cb7
commit
403c36d984
1 changed files with 2 additions and 2 deletions
|
@ -905,8 +905,8 @@ class DisplayTextQuestion(Question):
|
|||
"warning": "yellow",
|
||||
"danger": "red",
|
||||
}
|
||||
text = m18n.g(self.style) if self.style != "danger" else m18n.n("danger")
|
||||
return colorize(text, color[self.style]) + f" {text}"
|
||||
prompt = m18n.g(self.style) if self.style != "danger" else m18n.n("danger")
|
||||
return colorize(prompt, color[self.style]) + f" {text}"
|
||||
else:
|
||||
return text
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue