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
commit2bb2377601c44ab406fade8e7bfdc888900abe7f (patch)
tree99bead7a10b8b134dae8301bf643c3bdff9491ff /FrontEnd/src/app/services
parentb462b3c380258a9a300fce8709530541f2376d92 (diff)
downloadtimeline-2bb2377601c44ab406fade8e7bfdc888900abe7f.tar.gz
timeline-2bb2377601c44ab406fade8e7bfdc888900abe7f.tar.bz2
timeline-2bb2377601c44ab406fade8e7bfdc888900abe7f.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> {