Skip to content
Snippets Groups Projects
Unverified Commit ff0ab8bb authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Fix archived items tooltip that's missing the item type (#33970)

* Make archived item rely on the `model` for its type

The `type` prop doesn't exist in the list of items.
`models` on the other hand exists and it shows the underlying item model,
which almost 1:1 matches the desired type.

Almost, because we can questions "card" in the code.
That will be accounted for in the next commit.

* Handle `card` and `dataset` models

Show "question` and "model" in the UI instead.

* Move `getTranslatedEntityName` to the common utils

* Use translated entities for the archived item tooltip

* Switch back to the implicit return

* Lowercase the translated model name

* Add missing string translation

* Add unit test for `getTranslatedEntityName`
parent 75482b1f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment