Remove the trailing delta sign from the default replicas of scale form.

mine
wi1dcard 2020-10-17 14:20:30 +08:00
parent 9406d0821d
commit b92820a631
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func (s *ScaleExtender) makeScaleForm(sel string) *tview.Form {
f := s.makeStyledForm()
replicas := strings.TrimSpace(s.GetTable().GetCell(s.GetTable().GetSelectedRowIndex(), s.GetTable().NameColIndex()+1).Text)
tokens := strings.Split(replicas, "/")
replicas = tokens[1]
replicas = strings.TrimRight(tokens[1], ui.DeltaSign)
f.AddInputField("Replicas:", replicas, 4, func(textToCheck string, lastChar rune) bool {
_, err := strconv.Atoi(textToCheck)
return err == nil