From 81ee14e95a0fcde692e772077723400feca54d72 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 16 Mar 2020 17:27:25 +0100 Subject: [PATCH] Added iconUrl to oc-file element --- changelog/unreleased/678 | 7 +++++++ src/assets/examples/lorem.png | Bin 0 -> 3286 bytes src/elements/OcFile.vue | 26 ++++++++++++++++++++++++-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 changelog/unreleased/678 create mode 100644 src/assets/examples/lorem.png diff --git a/changelog/unreleased/678 b/changelog/unreleased/678 new file mode 100644 index 000000000..076ceef79 --- /dev/null +++ b/changelog/unreleased/678 @@ -0,0 +1,7 @@ +Enhancement: Added iconUrl to oc-file element + +The oc-file element now supports passing an arbitrary URL to be displayed as a file thumbnail. +It will fall back to the icon name in case the thumbnail could not be loaded. + +https://github.com/owncloud/owncloud-design-system/pull/678 + diff --git a/src/assets/examples/lorem.png b/src/assets/examples/lorem.png new file mode 100644 index 0000000000000000000000000000000000000000..a02ced103a78c0ee54efd5ea785cdb1892232957 GIT binary patch literal 3286 zcmW-k2UJs87li{35>XTd6%bKCV5CSHK&nWj7eNd`2u(WDMFY~M6F_cK=j{FMlUSpNTC6PGED#8URYzOh7+fV!7W6cD zH)Y(72A4Bl+Gaiw$oaOD#gHy~{u%^wE=EUP4etDUB{Rrqcw`%IT~~Jh?-=FJ47!Sp zZ=BEY8$QUqOuVVaFT{;r7@b5Lj!3|c~@P{cjS)lv)QdU|ooOG~LRsEZ7@gO*nG z<^J6HUPqjphX*el;p9}r?`k7+_pTm}5(Jvarl-j#)d+_hn}(zq-WC%)H^RazXV# z(!|7Md~))!wRL~F9lorhq1eA0BOVbEA?Y)xUuf_?DmV8AcS01M{+#~jkGGGHfRt47 zqdZL_ncTBDQo^O;FY~RQ-ZdpWFg$!KJUl$T3hUI*o0*w;JCbd1auRt&@0Kuz@<~`X ziskw*-gdB7SC6Ro-~6|yuMZ>9u#rL^B~vI4rluJju+CS1<_Ojyha)g+fB#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