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

View File

@ -213,6 +213,8 @@ export class Et2VfsSelectButton extends Et2InputWidget(LitElement)
return html` return html`
<et2-button part="button" <et2-button part="button"
image=${image} image=${image}
title=${this.title}
helptext=${this.helptext}
?disabled=${this.disabled} ?disabled=${this.disabled}
?readonly=${this.readonly || processing} ?readonly=${this.readonly || processing}
.noSubmit=${true} .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 click to order after that criteria common en Order after criteria
clickable path common en Clickable path 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. 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 common en Close
close sidebox common en Close side menu close sidebox common en Close side menu
closes the window without saving the changes common en Close without saving closes the window without saving the changes common en Close without saving