aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-08-26 21:36:58 +0800
committercrupest <crupest@outlook.com>2023-08-26 21:36:58 +0800
commitf5dfd52f6efece2f4cad227044ecf4dd66301bbc (patch)
tree0d64daae438ac6d95f0848a0b3387134d9528438 /FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx
parent4daa84ede781cdf6f424d68c967a17c7e1c79f59 (diff)
downloadtimeline-f5dfd52f6efece2f4cad227044ecf4dd66301bbc.tar.gz
timeline-f5dfd52f6efece2f4cad227044ecf4dd66301bbc.tar.bz2
timeline-f5dfd52f6efece2f4cad227044ecf4dd66301bbc.zip
...
Diffstat (limited to 'FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx')
-rw-r--r--FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx b/FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx
index b57135bb..afd83a5f 100644
--- a/FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx
+++ b/FrontEnd/src/pages/timeline/TimelinePropertyChangeDialog.tsx
@@ -6,9 +6,9 @@ import {
HttpTimelinePatchRequest,
kTimelineVisibilities,
TimelineVisibility,
-} from "@/http/timeline";
+} from "~src/http/timeline";
-import OperationDialog from "@/views/common/dialog/OperationDialog";
+import OperationDialog from "~src/components/dialog/OperationDialog";
export interface TimelinePropertyChangeDialogProps {
open: boolean;
@@ -68,13 +68,13 @@ const TimelinePropertyChangeDialog: React.FC<
onProcess={({ title, visibility, description }) => {
const req: HttpTimelinePatchRequest = {};
if (title !== timeline.title) {
- req.title = title as string;
+ req.title = title;
}
if (visibility !== timeline.visibility) {
- req.visibility = visibility as TimelineVisibility;
+ req.visibility = visibility;
}
if (description !== timeline.description) {
- req.description = description as string;
+ req.description = description;
}
return getHttpTimelineClient()
.patchTimeline(timeline.owner.username, timeline.nameV2, req)