foss42/apidash

Renaming/cloning entries

Michal-Szczepaniak opened this issue · 5 comments

Describe the bug/problem
When renaming entry, current name is being deleted instead of being left for edition. Similarly when I duplicate entry, its not " (clone)" but "(clone)". They seemed similar enough for me to put them in single issue.

Steps to Reproduce the bug/problem
Add request entry and then change name or clone it.

Expected behavior
It should have current name editable when renaming and cursor put at the end, and while cloning it should use current name too.

Device Info (The device where you encountered this issue):

  • OS: opensuse Tumbleweed
  • Version: tubmleweed

Please add screenshots/videos

Thought it would be obvious but sure
Screenshot_20240704_231717
Screenshot_20240704_231729
Screenshot_20240704_231740

people often use rename option to copy name but also having to retype entire name just to change one letter is bit of a massive pain

@Michal-Szczepaniak

  1. "untitled" is just a placeholder. It means no name has been assigned. That is why renaming it shows blank text field. You can try it for any other name, you won't have any issue.
  2. " (clone)" becomes "(clone)" due to trimming which is fine for the time being.
  1. but the name has been assigned that's what i'm telling you
  2. I don't mean " (clone)" vs "(clone)", i mean it should be "original name (clone)"

You would not believe it! Its working fine i was just renaming entry named untitled which was in fact not titled untitled but untitled