fix: Fixed issue where file upload progress was not visible
This commit is contained in:
@@ -390,16 +390,13 @@ export class FilesController extends AbstractViewController<FilesControllerEvent
|
|||||||
|
|
||||||
public async uploadNewFile(
|
public async uploadNewFile(
|
||||||
fileOrHandle: File | FileSystemFileHandle,
|
fileOrHandle: File | FileSystemFileHandle,
|
||||||
{
|
options: {
|
||||||
showToast,
|
|
||||||
note,
|
|
||||||
}: {
|
|
||||||
showToast?: boolean
|
showToast?: boolean
|
||||||
note?: SNNote
|
note?: SNNote
|
||||||
} = {
|
|
||||||
showToast: true,
|
|
||||||
},
|
},
|
||||||
): Promise<FileItem | undefined> {
|
): Promise<FileItem | undefined> {
|
||||||
|
const { showToast = true, note } = options
|
||||||
|
|
||||||
let toastId: string | undefined
|
let toastId: string | undefined
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user