InvenTree/InvenTree/templates
bloemp e1d1b51936
Various fixes to the "Download image from URL" functionality (#4101)
* Various fixes to the "Download image from URL" functionality

This commit adds an user-agent string to the download request wich prevents some sites from
returning a 403 (forbidden) status.
Clicking the download button on the thumbnail, also showed the thumbnail because the event wasn't stopped.
The parts thumbnail didn't update after a succesfull download of the image, reloadImage was never called.

* Fixed copy and paste errors in previous commit

* Reverted back the user-agent  immitation from the previous commit

* Add a user-agent overide setting

Add a setting to allow overiding the default user-agent  that is used for downloading images and files from a URL

* Fixed a typo in the description

* Another typo fixed

* Removed cast to string to prevent using 'None' as the user-agent

* Thumbnail delete button not visible after upload

The delete button on the image thumbnails of both parts and companies
isn't showing when we upload a new image. This is fixed by always
including the element on the page, and use javascript to show and hide
the element.
2022-12-24 23:17:04 +11:00
..
InvenTree Various fixes to the "Download image from URL" functionality (#4101) 2022-12-24 23:17:04 +11:00
account Custom splash screen (#3499) 2022-08-09 09:42:53 +10:00
allauth_2fa Small visual tweaks to various auth views (#3238) 2022-06-23 07:09:17 +10:00
email Null units fix (#3663) 2022-09-08 15:18:43 +10:00
js Serial number autofill (#4091) 2022-12-21 22:09:21 +11:00
patterns/wizard fix endline 2022-05-20 13:35:07 +02:00
plugin fix endline 2022-05-20 13:35:07 +02:00
registration "normal" admin-logout message 2021-09-03 00:23:29 +02:00
sample fix endline 2022-05-20 13:35:07 +02:00
socialaccount/snippets fix trailing 2022-05-20 13:20:55 +02:00
403.html fix endline 2022-05-20 13:35:07 +02:00
403_csrf.html Adds a template for handling 403 errors due to CSRF issues (#3260) 2022-06-26 18:09:58 +10:00
404.html fix endline 2022-05-20 13:35:07 +02:00
500.html fix endline 2022-05-20 13:35:07 +02:00
503.html Fix splash screen for maintenance mode 503 page (#3651) 2022-09-07 00:04:06 +10:00
about.html Link to API documentation in "about" window (#3871) 2022-10-28 18:16:44 +11:00
admin_button.html Builtin plugins (#3889) 2022-11-05 01:05:54 +11:00
attachment_button.html fix endline 2022-05-20 13:35:07 +02:00
attachment_table.html Fix API endpoint permission for the "AttachmentMixin" class (#3218) 2022-06-18 14:48:09 +10:00
base.html Part pricing cache (#3710) 2022-11-14 15:58:22 +11:00
clip.html fix endline 2022-05-20 13:35:07 +02:00
collapse_rows.html Sales order tables (#3225) 2022-06-18 22:22:00 +10:00
expand_rows.html Sales order tables (#3225) 2022-06-18 22:22:00 +10:00
filter_list.html fix endline 2022-05-20 13:35:07 +02:00
hover_image.html fix endline 2022-05-20 13:35:07 +02:00
mail.html fix endline 2022-05-20 13:35:07 +02:00
modal_csrf.html fix endline 2022-05-20 13:35:07 +02:00
modal_delete_form.html Add a generic DeleteForm and update AjaxDeleteView 2019-05-13 22:46:47 +10:00
modal_form.html same treatment for html 2021-05-06 14:33:03 +02:00
modals.html fix endline 2022-05-20 13:35:07 +02:00
navbar.html fix trailing 2022-05-20 13:20:55 +02:00
notes_buttons.html fix endline 2022-05-20 13:35:07 +02:00
notifications.html fix endline 2022-05-20 13:35:07 +02:00
page_base.html Part page loading improvements (#3185) 2022-06-17 21:26:28 +10:00
panel.html fix endline 2022-05-20 13:35:07 +02:00
price.html fix endline 2022-05-20 13:35:07 +02:00
price_data.html Part pricing cache (#3710) 2022-11-14 15:58:22 +11:00
qr_button.html fix endline 2022-05-20 13:35:07 +02:00
qr_code.html fix endline 2022-05-20 13:35:07 +02:00
search.html fix trailing 2022-05-20 13:20:55 +02:00
search_form.html Search button fix 2021-11-15 23:06:15 +11:00
sidebar_header.html fix endline 2022-05-20 13:35:07 +02:00
sidebar_item.html fix tags 2022-01-21 02:11:34 +01:00
sidebar_link.html fix tags 2022-01-21 02:11:34 +01:00
sidebar_toggle.html fix tags 2022-01-21 02:11:34 +01:00
skeleton.html Remove custom javascript from auth pages (#3250) 2022-06-25 07:45:50 +10:00
spacer.html fix endline 2022-05-20 13:35:07 +02:00
stats.html fix docs link for "email settings not configured" warning (#3209) 2022-06-17 08:14:40 +10:00
status_codes.html fix trailing 2022-05-20 13:20:55 +02:00
stock_table.html Refactorin' 2022-03-03 21:16:27 +11:00
tel.html fix endline 2022-05-20 13:35:07 +02:00
third_party_js.html Add 1D barcode support to browser webcam scanner (#4007) 2022-12-02 08:03:21 +11:00
url.html fix endline 2022-05-20 13:35:07 +02:00
version.html [FR] Add plugin keys, state and version to version info (#3496) 2022-08-08 07:55:55 +10:00
yesnolabel.html fix endline 2022-05-20 13:35:07 +02:00