1
0
Fork 0
mirror of synced 2024-06-01 18:20:18 +12:00

reset field.name to originalName after cancel

This commit is contained in:
Maurits Lourens 2022-01-18 10:45:37 +01:00
parent 81218cbea2
commit b03ce671db

View file

@ -126,6 +126,10 @@
}
}
function cancelEdit() {
field.name = originalName
}
function deleteColumn() {
if (field.name === $tables.selected.primaryDisplay) {
notifications.error("You cannot delete the display column")
@ -307,6 +311,7 @@
title={originalName ? "Edit Column" : "Create Column"}
confirmText="Save Column"
onConfirm={saveColumn}
onCancel={cancelEdit}
disabled={invalid}
>
<Input