jhipster / generator-jhipster-ionic

Ionic for JHipster ✨

Home Page:https://developer.okta.com/blog/2022/05/12/ionic-angular-jhipster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conflict when an entity has two image fields

codluca opened this issue · comments

The is a conflict when an entity has two image fields.
The code was generated for an angular application.

There is only one fileInput in the -update.ts:
@ViewChild('fileInput', { static: false }) fileInput;
And in getPicture() method this.fileInput.nativeElement.click(); is called.

Both fields from -update.html have #fileInput.

The result is that only the first entity image field can be set, regardless of which button is pressed in the UI.

I'm not ignoring this issue, I've just been really busy lately. I don't know when I'll get to this issue, but it'll be on my radar until I do. :)

@Luca1234 I won't be able to get to this until January. I'll add a bug bounty in case someone else wants to fix it in the meantime.

Hi all,
I'm a follower of ionic framework, and I have already worked on this blueprint in the past.
If there are not problems, I can investigate on this issue trying of resolving its (I worked on a old version of jhipster-ionic)

@amanganiello90 If you'd like to work on this issue, please go ahead. I'd be happy to QA when you're finished.