grafana/public/app/features/variables/editor
Lucas Raschek 6b1b52b704
Templating: Fixes renaming a variable using special characters or same name (#26866)
* Fix variable editor name-input bug

You couldn't delete an invalid character after typing it into the name-input field.
While investigating the issue turned out to be bigger, as there was a problem with
valid characters too. (See test scenarios below)

The fix seems to be, to remove an unnecessary check in the `changeVariableName`
action. There is theoretically now the possibility, that the `changeVariableName`
action is called with the same name, as the variable is already, but practically
there seems no possibility, that this could happen. A test, which checks that, had
to be removed too.

Test scenarios:
* 1st Scenario
    1. Type "@"
    2. Try deleting it
* 2nd Scenario
    1. Type "w"
    2. delete "w"
    3. Try typing "w" again

Fixes #26562

* Fix bug when updating existing variable
2020-08-13 06:52:32 +02:00
..
actions.ts Templating: Fixes renaming a variable using special characters or same name (#26866) 2020-08-13 06:52:32 +02:00
DefaultVariableQueryEditor.tsx Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
reducer.test.ts Variables: replaces UUID with name for a more performant lookup in TemplateSrv (#22858) 2020-03-23 13:45:08 +01:00
reducer.ts Variables: replaces UUID with name for a more performant lookup in TemplateSrv (#22858) 2020-03-23 13:45:08 +01:00
SelectionOptionsEditor.tsx Fix: Icon and Tooltip on Variables editor (#26086) 2020-07-07 08:45:37 +02:00
types.ts Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
VariableEditorContainer.tsx Templating: fixes variables not being interpolated after dashboard refresh (#25698) 2020-06-25 07:38:55 +02:00
VariableEditorEditor.tsx Variables: Shows hide option labels on Safari (#26883) 2020-08-10 06:11:24 +02:00
VariableEditorList.tsx Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00
VariableValuesPreview.tsx Templating: removes old Angular variable system and featureToggle (#24779) 2020-06-04 13:44:48 +02:00