Skip to content

Commit

Permalink
Merge branch 'VideoInterface' of https://github.com/NeurodataWithoutB…
Browse files Browse the repository at this point in the history
…orders/nwb-guide into VideoInterface
  • Loading branch information
garrettmflynn committed Dec 27, 2023
2 parents eb1a1dc + c7bb17b commit f617858
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions src/renderer/src/stories/FileSystemSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class FilesystemSelector extends LitElement {

const objectTypeReference = getObjectTypeReferenceString(this.type, this.multiple);

const ogThis = this
const ogThis = this;

return html`
<div>
Expand All @@ -228,33 +228,38 @@ export class FilesystemSelector extends LitElement {
>
${resolvedValueDisplay
? html`
${resolvedValueDisplay}
${dialog
? ""
: html`<br /><small
${resolvedValueDisplay}
${dialog
? ""
: html`<br /><small
>Cannot get full ${isMultipleTypes ? this.type.join(" / ") : this.type}
path${this.multiple ? "s" : ""} on web distribution</small
>`}
`
`
: html`<span
>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,
})}`}</span
>${this.multiple &&
(this.type === "directory" || (isMultipleTypes && this.type.includes("directory") && !dialog))
? html`<br /><small
>${this.multiple &&
(this.type === "directory" ||
(isMultipleTypes && this.type.includes("directory") && !dialog))
? html`<br /><small
>Multiple directory support only available using drag-and-drop.</small
>`
: ""}`}
: ""}`}
</button>
${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);
},
})
: ""}
</div>
${isMultipleTypes
? html`<div id="button-div">
Expand Down

0 comments on commit f617858

Please sign in to comment.