-
Notifications
You must be signed in to change notification settings - Fork 2
Fix/validate image on site #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mreq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v multi pickeru http://dummy.localhost:3002/console/ui/file_placements_multi_picker_fields
i ve vyberu coveru pro stranku http://dummy.localhost:3002/console/pages/dummy/edit
Zasednuti a varovani se ukazuje spravne, ale soubor muzu normalne vybrat, ac se ma jiz vyplemcane sve 1 maximalni pouziti. Stranka pak lze normalne ulozit a pocet vyuziti se navysi na 2.
| end | ||
| else | ||
| stimulus_action({ click: "primaryAction" }) | ||
| if @primary_action.to_s == 'index_for_modal' && !allow_selection_for_site? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tohle bych zmenil na != "index", protoze v pripade multi pickeru take nechci, aby to slo vybrat http://dummy.localhost:3000/console/ui/file_placements_multi_picker_fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opraveno
* fix: do not allow to select image if it is not allowed for current site --------- Co-authored-by: Petr Marek <contact@petrmarek.eu>
Screen.Recording.2025-10-16.at.12.44.27.mov
Screen.Recording.2025-10-16.at.13.54.08.mov
Jak by to mělo fungovat
Případ 1: Uživatel je na webu XXX a chce vybrat obrázek, který je nastaven pro web YYY => uživatel jej nemůže přidat do článku
Případ 2: Uživatel je na webu XXX a chce vybrat obrázek, který je nastaven pro web XXX, ale má limit nastavený na 1 a již byl použit => uživatel jej nemůže přidat do článku
Případ 3: Uživatel je na webu XXX a chce vybrat obrázek, který je nastaven pro web XXX => uživatel jej může přidat
Pridano screen record s ukazkou