LRNWebComponents / hax-body

CODE MOVED TO https://github.com/elmsln/lrnwebcomponents PROJECT HOME:
https://haxtheweb.org/
Apache License 2.0
55 stars 7 forks source link

disable / grey out there upload feature in add if no backends present #127

Closed btopro closed 6 years ago

btopro commented 6 years ago

as identified here -- https://github.com/elmsln/grav-plugin-hax/issues/6#issuecomment-394540420

it's a good idea to disable the upload field in the event that an implementation has no backend with which to upload to.

mgifford commented 6 years ago

Ideally a user would just see a link where they could attach an image, rather than somewhere that they might indicate that an upload is possible. When playing around with new technology, nobody wants to see an error.

btopro commented 6 years ago

2018-06-05_11-57-20

so like this or are you referencing osmething else? URL field allows referencing anything and attempting to pull it together and then hiding / disabling the upload area when there's no ability to do so.

mgifford commented 6 years ago

Yup.. Having that URL works fine there.

btopro commented 6 years ago

upload button only shows up now if there's detected a backend which supports uploading