mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 07:51:14 +00:00
feat: Add tag parameter to file upload and resource creation functions
This commit is contained in:
@@ -201,6 +201,7 @@ class UploadingManager extends Listenable {
|
||||
resourceID: number,
|
||||
storageID: number,
|
||||
description: string,
|
||||
tag: string,
|
||||
onFinished: () => void,
|
||||
): Promise<Response<void>> {
|
||||
const res = await network.initFileUpload(
|
||||
@@ -209,6 +210,7 @@ class UploadingManager extends Listenable {
|
||||
file.size,
|
||||
resourceID,
|
||||
storageID,
|
||||
tag,
|
||||
);
|
||||
if (!res.success) {
|
||||
return {
|
||||
|
||||
@@ -1112,6 +1112,7 @@ function CreateFileDialog({ resourceId }: { resourceId: number }) {
|
||||
resourceId,
|
||||
storage.id,
|
||||
description,
|
||||
tag,
|
||||
() => {
|
||||
if (mounted.current) {
|
||||
reload();
|
||||
|
||||
Reference in New Issue
Block a user