remove space decimal separator
This commit is contained in:
@@ -12,7 +12,6 @@ const (
|
||||
DECIMAL_SEPARATOR_DEFAULT DecimalSeparator = 0
|
||||
DECIMAL_SEPARATOR_DOT DecimalSeparator = 1
|
||||
DECIMAL_SEPARATOR_COMMA DecimalSeparator = 2
|
||||
DECIMAL_SEPARATOR_SPACE DecimalSeparator = 3
|
||||
DECIMAL_SEPARATOR_INVALID DecimalSeparator = 255
|
||||
)
|
||||
|
||||
@@ -25,8 +24,6 @@ func (f DecimalSeparator) String() string {
|
||||
return "Dot"
|
||||
case DECIMAL_SEPARATOR_COMMA:
|
||||
return "Comma"
|
||||
case DECIMAL_SEPARATOR_SPACE:
|
||||
return "Space"
|
||||
case DECIMAL_SEPARATOR_INVALID:
|
||||
return "Invalid"
|
||||
default:
|
||||
|
||||
@@ -301,7 +301,7 @@ func (s *UserService) UpdateUser(c core.Context, user *models.User, modifyUserLa
|
||||
updateCols = append(updateCols, "short_time_format")
|
||||
}
|
||||
|
||||
if core.DECIMAL_SEPARATOR_DEFAULT <= user.DecimalSeparator && user.DecimalSeparator <= core.DECIMAL_SEPARATOR_SPACE {
|
||||
if core.DECIMAL_SEPARATOR_DEFAULT <= user.DecimalSeparator && user.DecimalSeparator <= core.DECIMAL_SEPARATOR_COMMA {
|
||||
updateCols = append(updateCols, "decimal_separator")
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ export class DecimalSeparator implements TypeAndName, NumeralSymbolType {
|
||||
public static readonly LanguageDefaultType: number = 0;
|
||||
public static readonly Dot = new DecimalSeparator(1, 'Dot', '.');
|
||||
public static readonly Comma = new DecimalSeparator(2, 'Comma', ',');
|
||||
public static readonly Space = new DecimalSeparator(3, 'Space', ' ');
|
||||
|
||||
public static readonly Default = DecimalSeparator.Dot;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user