mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Support setting text fields to empty strings or NULL in the data editor grid. Fixes #1790
This commit is contained in:
committed by
Dave Page
parent
c17e201a92
commit
54ba1fbe59
@@ -630,7 +630,7 @@ define(
|
||||
: Slick.Editors.ReadOnlyJsonText;
|
||||
options['formatter'] = Slick.Formatters.JsonString;
|
||||
} else if(c.cell == 'number') {
|
||||
options['editor'] = is_editable ? Slick.Editors.Text
|
||||
options['editor'] = is_editable ? Slick.Editors.CustomNumber
|
||||
: Slick.Editors.ReadOnlyText;
|
||||
options['formatter'] = Slick.Formatters.Numbers;
|
||||
} else if(c.cell == 'boolean') {
|
||||
@@ -640,6 +640,7 @@ define(
|
||||
} else {
|
||||
options['editor'] = is_editable ? Slick.Editors.pgText
|
||||
: Slick.Editors.ReadOnlypgText;
|
||||
options['formatter'] = Slick.Formatters.Text;
|
||||
}
|
||||
|
||||
grid_columns.push(options)
|
||||
|
||||
Reference in New Issue
Block a user