odoo/odoo#105193

Created by fw-bot
Merged at 8fd7eda342102351ea3d57a4146318f2469a7caa

Statuses:

label
odoo-dev:master-16.0-fix-primary-btn-media-dialog-load-more-rde-MclL-fw
head
33171c2302519081ab29e53dab7304806a687e94
merged
4 years ago by Romain Derie (rde)
odoo/odoo
16.0 #104583
17.0
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
saas-19.1
saas-19.2
saas-19.3
master #105193

[FW][FIX] web_editor: restore "load more" image button as button style

With commit 1 the "load more" button of the media dialog went from a
btn-primary style to a btn-secondary style, which is displayed a link.
It was done in an Odoo global effort of making each and every screen
having only one (sometimes two at most) primary action to help the UX,
as explained at 2.
But in this case, it seems to more misses with the UX than helping the
user as that button really becomes invisible without it. We already were
afraid of that but still merge it, see 2 again.
Indeed, in secondary style this button is barely visible due to the
unsplash and undraw image results which have an "author" text like on
top of the image which looks like the "load more" style.

This commit is using the btn-odoo class to show it as a button and not
a link to avoid people not seeing it.
btn-odoo is chosen instead of btn-primary as this is how "secondary
important actions" are designed now in Odoo.

Note that in community, it looks like a btn-primary but that's not
related to this PR.

Before:
image
After:
image

Forward-Port-Of: #104583