diff --git a/app/imports/client/ui/components/global/SmartImageInput.vue b/app/imports/client/ui/components/global/SmartImageInput.vue index cfd39c34..a0773f63 100644 --- a/app/imports/client/ui/components/global/SmartImageInput.vue +++ b/app/imports/client/ui/components/global/SmartImageInput.vue @@ -1,7 +1,7 @@ +
+ Add image + + mdi-image-outline + +
@@ -61,6 +87,13 @@ export default { OutlinedInput, }, mixins: [SmartInput], + inject: { + theme: { + default: { + isDark: false, + }, + }, + }, props: { label: { type: String, @@ -73,6 +106,14 @@ export default { dragging: false, }; }, + computed: { + themeClasses() { + return { + 'theme--dark': this.theme.isDark, + 'theme--light': !this.theme.isDark, + } + }, + }, watch: { file(file){ if (!file) return; @@ -129,6 +170,11 @@ export default { data: { href: this.value, }, + callback: (href) => { + if (href) { + this.change(href); + } + }, }); }, handleUrlChange() { @@ -161,12 +207,21 @@ export default { + + \ No newline at end of file diff --git a/app/imports/client/ui/files/userImages/ImageInputDialog.vue b/app/imports/client/ui/files/userImages/ImageInputDialog.vue index 12539290..bf08ee97 100644 --- a/app/imports/client/ui/files/userImages/ImageInputDialog.vue +++ b/app/imports/client/ui/files/userImages/ImageInputDialog.vue @@ -3,6 +3,7 @@ diff --git a/app/imports/client/ui/pages/Files.vue b/app/imports/client/ui/pages/Files.vue index a8abe566..33fd0ece 100644 --- a/app/imports/client/ui/pages/Files.vue +++ b/app/imports/client/ui/pages/Files.vue @@ -73,7 +73,7 @@