diff --git a/src/components/Controls/AttachImage.vue b/src/components/Controls/AttachImage.vue index 818f07f0..ac989f5c 100644 --- a/src/components/Controls/AttachImage.vue +++ b/src/components/Controls/AttachImage.vue @@ -1,15 +1,11 @@ - {{ t`Edit` }} + {{ !isReadOnly ? t`Edit` : '' }} @@ -72,6 +75,10 @@ export default { }, methods: { async openFileSelector() { + if (this.isReadOnly) { + return; + } + const options = { title: fyo.t`Select Image`, properties: ['openFile'], diff --git a/src/components/Controls/AutoComplete.vue b/src/components/Controls/AutoComplete.vue index 04f2860a..80b31c68 100644 --- a/src/components/Controls/AutoComplete.vue +++ b/src/components/Controls/AutoComplete.vue @@ -8,17 +8,18 @@ selectHighlightedItem, }" > -