When creating a function from scratch, we see two dropdowns, one with a language and no other options, and another one with a CdxLookup over ZLanguage types, with a "Add language" placeholder.
There's also a "+Add labels in another language" button at the bottom
When selecting a language in the "Add language" lookup, it just adds one language to the dropdown in the left, which doesn't seem to make much sense.
According to the figma files:
- https://www.figma.com/file/z4PDWdNVvwEtRMMozW8Fvi/Function-editor?node-id=1686%3A7760
- There's only ONE dropdown
- This dropdown will be initiated with English.
- The dropdown contains the selected language for the current label.
- This dropdown is also a lookup component that will perform a search of Z60 objects with the string typed in by the user.
- When emptied, the dropdown should contain a placeholder that identifies such as "Select language"
- When a new label is added on the button below, the new "Select language" dropdown shall be empty.
- It should not be allowed to add two labels with the same language.