diff --git a/src/renderer/src/stories/FileSystemSelector.js b/src/renderer/src/stories/FileSystemSelector.js index d427a5723..4042d0788 100644 --- a/src/renderer/src/stories/FileSystemSelector.js +++ b/src/renderer/src/stories/FileSystemSelector.js @@ -203,7 +203,7 @@ export class FilesystemSelector extends LitElement { const objectTypeReference = getObjectTypeReferenceString(this.type, this.multiple); - const ogThis = this + const ogThis = this; return html`
@@ -228,33 +228,38 @@ export class FilesystemSelector extends LitElement { > ${resolvedValueDisplay ? html` - ${resolvedValueDisplay} - ${dialog - ? "" - : html`
Cannot get full ${isMultipleTypes ? this.type.join(" / ") : this.type} path${this.multiple ? "s" : ""} on web distribution`} - ` + ` : html`Drop ${objectTypeReference} - here${isMultipleTypes - ? "" - : `, or click to choose ${getObjectTypeReferenceString(this.type, this.multiple, { + >Drop ${objectTypeReference} + here${isMultipleTypes + ? "" + : `, or click to choose ${getObjectTypeReferenceString(this.type, this.multiple, { native: true, })}`}${this.multiple && - (this.type === "directory" || (isMultipleTypes && this.type.includes("directory") && !dialog)) - ? html`
${this.multiple && + (this.type === "directory" || + (isMultipleTypes && this.type.includes("directory") && !dialog)) + ? html`
Multiple directory support only available using drag-and-drop.` - : ""}`} + : ""}`} - ${this.multiple && this.value.length > 1 ? new List({ - items: this.value.map((v) => ({ value: v + 1 })), - editable: false, - onChange: function () { ogThis.value = this.items.map((item) => item.value) }, - }) : ""} + ${this.multiple && this.value.length > 1 + ? new List({ + items: this.value.map((v) => ({ value: v + 1 })), + editable: false, + onChange: function () { + ogThis.value = this.items.map((item) => item.value); + }, + }) + : ""}
${isMultipleTypes ? html`