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,
|
resourceID: number,
|
||||||
storageID: number,
|
storageID: number,
|
||||||
description: string,
|
description: string,
|
||||||
|
tag: string,
|
||||||
onFinished: () => void,
|
onFinished: () => void,
|
||||||
): Promise<Response<void>> {
|
): Promise<Response<void>> {
|
||||||
const res = await network.initFileUpload(
|
const res = await network.initFileUpload(
|
||||||
@@ -209,6 +210,7 @@ class UploadingManager extends Listenable {
|
|||||||
file.size,
|
file.size,
|
||||||
resourceID,
|
resourceID,
|
||||||
storageID,
|
storageID,
|
||||||
|
tag,
|
||||||
);
|
);
|
||||||
if (!res.success) {
|
if (!res.success) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1112,6 +1112,7 @@ function CreateFileDialog({ resourceId }: { resourceId: number }) {
|
|||||||
resourceId,
|
resourceId,
|
||||||
storage.id,
|
storage.id,
|
||||||
description,
|
description,
|
||||||
|
tag,
|
||||||
() => {
|
() => {
|
||||||
if (mounted.current) {
|
if (mounted.current) {
|
||||||
reload();
|
reload();
|
||||||
|
|||||||
Reference in New Issue
Block a user