Remove the trailing delta sign from the default replicas of scale form.
parent
9406d0821d
commit
b92820a631
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue