Save search in modal popup
I have a modal popup for save search.
to save it I am using popover with name of search and a dropdown under which category I want to save it.
https://element.eleme.io/#/en-US/component/popover
It feels clumsy to use popover this way like below.
And somewhere I saw that popup within popup should also not be used. like below.
so what way should I go with. I tried watching many ux designs, but they had seperate page for save search. so they had no deal with modal within modal.
So with my scenario where save search is in modal.
How do I keep query and its metadata (i.e. name and tree) seperate?