aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/services
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-12 22:01:51 +0800
committercrupest <crupest@outlook.com>2021-01-12 22:01:51 +0800
commit07eb0d4d777c36da7ea62ea55a2ac3f68e899694 (patch)
treea8692dd0d0673089dc4319aa8bb548dc3743c590 /FrontEnd/src/app/services
parent11724294f107b23c68b0718530262664ea5e0efc (diff)
downloadtimeline-07eb0d4d777c36da7ea62ea55a2ac3f68e899694.tar.gz
timeline-07eb0d4d777c36da7ea62ea55a2ac3f68e899694.tar.bz2
timeline-07eb0d4d777c36da7ea62ea55a2ac3f68e899694.zip
...
Diffstat (limited to 'FrontEnd/src/app/services')
-rw-r--r--FrontEnd/src/app/services/timeline.ts15
1 files changed, 6 insertions, 9 deletions
diff --git a/FrontEnd/src/app/services/timeline.ts b/FrontEnd/src/app/services/timeline.ts
index 7d239fbf..4e2530cc 100644
--- a/FrontEnd/src/app/services/timeline.ts
+++ b/FrontEnd/src/app/services/timeline.ts
@@ -175,15 +175,12 @@ export class TimelineService {
changeTimelineProperty(
timelineName: string,
req: TimelineChangePropertyRequest
- ): Observable<TimelineInfo> {
- return from(
- getHttpTimelineClient()
- .patchTimeline(timelineName, req)
- .then((timeline) => {
- void this.syncTimeline(timelineName);
- return timeline;
- })
- );
+ ): Promise<void> {
+ return getHttpTimelineClient()
+ .patchTimeline(timelineName, req)
+ .then(() => {
+ void this.syncTimeline(timelineName);
+ });
}
deleteTimeline(timelineName: string): Observable<unknown> {