reset field.name to originalName after cancel
This commit is contained in:
parent
81218cbea2
commit
b03ce671db
|
@ -126,6 +126,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function cancelEdit() {
|
||||||
|
field.name = originalName
|
||||||
|
}
|
||||||
|
|
||||||
function deleteColumn() {
|
function deleteColumn() {
|
||||||
if (field.name === $tables.selected.primaryDisplay) {
|
if (field.name === $tables.selected.primaryDisplay) {
|
||||||
notifications.error("You cannot delete the display column")
|
notifications.error("You cannot delete the display column")
|
||||||
|
@ -307,6 +311,7 @@
|
||||||
title={originalName ? "Edit Column" : "Create Column"}
|
title={originalName ? "Edit Column" : "Create Column"}
|
||||||
confirmText="Save Column"
|
confirmText="Save Column"
|
||||||
onConfirm={saveColumn}
|
onConfirm={saveColumn}
|
||||||
|
onCancel={cancelEdit}
|
||||||
disabled={invalid}
|
disabled={invalid}
|
||||||
>
|
>
|
||||||
<Input
|
<Input
|
||||||
|
|
Loading…
Reference in New Issue