diff --git a/api/js/etemplate/Et2Link/Et2LinkEntry.ts b/api/js/etemplate/Et2Link/Et2LinkEntry.ts index 86ca8740a7..6501b33285 100644 --- a/api/js/etemplate/Et2Link/Et2LinkEntry.ts +++ b/api/js/etemplate/Et2Link/Et2LinkEntry.ts @@ -376,7 +376,7 @@ export class Et2LinkEntry extends Et2InputWidget(LitElement) ?appIcons=${this.appIcons} applicationList=${this.applicationList ? this.applicationList : nothing} ?disabled=${this.disabled} - ?readonly=${this.disabled} + ?readonly=${this.readonly} .value=${this.__value?.app ? this.__value.app : nothing} @change=${this.handleAppChange} > diff --git a/api/js/etemplate/Et2Link/Et2LinkTo.ts b/api/js/etemplate/Et2Link/Et2LinkTo.ts index 35029e235a..102378e760 100644 --- a/api/js/etemplate/Et2Link/Et2LinkTo.ts +++ b/api/js/etemplate/Et2Link/Et2LinkTo.ts @@ -153,7 +153,7 @@ export class Et2LinkTo extends Et2InputWidget(LitElement) getClipboardFiles().then((files) => { - if(files.length > 0) + if(files.length > 0 && !this.disabled && !this.readonly) { this.pasteButton.removeAttribute("disabled"); } @@ -166,6 +166,7 @@ export class Et2LinkTo extends Et2InputWidget(LitElement) part="vfs button" exportparts="base:button_base" id="link" + ?disabled=${this.disabled} ?readonly=${this.readonly} method=${method || nothing} method-id=${method_id || nothing} @@ -235,6 +236,7 @@ export class Et2LinkTo extends Et2InputWidget(LitElement) @@ -262,6 +264,7 @@ export class Et2LinkTo extends Et2InputWidget(LitElement) // Make the whole template a drop target drop_target: this.getInstanceManager().DOMContainer.getAttribute("id"), readonly: this.readonly, + disabled: this.disabled, // Change to this tab when they drop onStart: function(event, file_count)