Link Paste changes

- Add copy & move buttons
- Better dialog title
- Add some tooltips
This commit is contained in:
nathan 2024-03-27 15:25:15 -06:00
parent 0ad19cbd80
commit 8658e46676
3 changed files with 18 additions and 6 deletions

View File

@ -159,7 +159,7 @@ export class Et2LinkTo extends Et2InputWidget(ScopedElementsMixin(FormControlMix
method=${method || nothing}
method-id=${method_id || nothing}
multiple
title=${this.egw().lang("link")}
title=${this.egw().lang("select file(s) from vfs")}
.buttonLabel=${this.egw().lang('Link')}
.onchange=${this.handleVfsSelected}
>
@ -168,8 +168,8 @@ export class Et2LinkTo extends Et2InputWidget(ScopedElementsMixin(FormControlMix
<et2-button slot="footer" image="move" id="move" style="order:3" noSubmit="true"
label=${this.egw().lang("move")}></et2-button>
</et2-vfs-select>
<et2-vfs-select image="linkpaste" aria-label=${this.egw().lang("paste files")} noSubmit="true"
title=${this.egw().lang("paste files")}
<et2-vfs-select image="linkpaste" aria-label=${this.egw().lang("clipboard contents")} noSubmit="true"
title=${this.egw().lang("Clipboard contents")}
?readonly=${this.readonly}
?disabled=${!pasteEnabled}
method=${method || nothing}
@ -186,9 +186,18 @@ export class Et2LinkTo extends Et2InputWidget(ScopedElementsMixin(FormControlMix
.onchange=${this.handleVfsSelected}
>
<et2-link-paste-dialog open
title=${this.egw().lang("paste")}
.buttonLabel=${this.egw().lang("paste")}
></et2-link-paste-dialog>
title=${this.egw().lang("Clipboard contents")}
.buttonLabel=${this.egw().lang("link")}
>
<et2-button slot="footer" image="copy" id="copy" style="order:3" noSubmit="true"
label=${this.egw().lang("copy")}
title=${this.egw().lang("Copy selected files")}
></et2-button>
<et2-button slot="footer" image="move" id="move" style="order:3" noSubmit="true"
label=${this.egw().lang("move")}
title=${this.egw().lang("Move selected files")}
></et2-button>
</et2-link-paste-dialog>
</et2-vfs-select>
`;
}

View File

@ -213,6 +213,8 @@ export class Et2VfsSelectButton extends Et2InputWidget(LitElement)
return html`
<et2-button part="button"
image=${image}
title=${this.title}
helptext=${this.helptext}
?disabled=${this.disabled}
?readonly=${this.readonly || processing}
.noSubmit=${true}

View File

@ -300,6 +300,7 @@ click to open colorpicker common en Click to open colourpicker
click to order after that criteria common en Order after criteria
clickable path common en Clickable path
clients not explicitly stating a limit get limited to these many days. a too high limit may cause problems with some clients. groupdav en Clients not explicitly stating a limit get limited to these many days. A too high limit may cause problems with some clients.
clipboard contents common en Clipboard contents
close common en Close
close sidebox common en Close side menu
closes the window without saving the changes common en Close without saving