|
|
@ -149,7 +149,7 @@ export class FilePickerModalComponent extends FilePickerBaseModalComponent { |
|
|
|
this.isAlreadyLinked(file), |
|
|
|
this.isAlreadyLinked(file), |
|
|
|
index === 0, |
|
|
|
index === 0, |
|
|
|
this.enterDirectoryCallback(file), |
|
|
|
this.enterDirectoryCallback(file), |
|
|
|
isDirectory(file) ? this.text.tooltip.alreadyLinkedDirectory : this.text.tooltip.alreadyLinkedFile, |
|
|
|
this.tooltip(file), |
|
|
|
{ |
|
|
|
{ |
|
|
|
selected: this.selection.has(file.id as string), |
|
|
|
selected: this.selection.has(file.id as string), |
|
|
|
changeSelection: () => { this.changeSelection(file); }, |
|
|
|
changeSelection: () => { this.changeSelection(file); }, |
|
|
@ -163,4 +163,12 @@ export class FilePickerModalComponent extends FilePickerBaseModalComponent { |
|
|
|
|
|
|
|
|
|
|
|
return !!found; |
|
|
|
return !!found; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private tooltip(file:IStorageFile):string|undefined { |
|
|
|
|
|
|
|
if (!this.isAlreadyLinked(file)) { |
|
|
|
|
|
|
|
return undefined; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return isDirectory(file) ? this.text.tooltip.alreadyLinkedDirectory : this.text.tooltip.alreadyLinkedFile; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|