From c2e8247a583a6acbf96b140d718410662c8f64f2 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sun, 19 Apr 2020 00:14:16 -0400 Subject: [PATCH] added timelines settings UI --- .../settings/settings.component.html | 37 ++++++++++++++++--- .../settings/settings.component.ts | 16 ++++++++ 2 files changed, 47 insertions(+), 6 deletions(-) diff --git a/src/app/components/floating-column/settings/settings.component.html b/src/app/components/floating-column/settings/settings.component.html index 25cb6d8c..c4dcf825 100644 --- a/src/app/components/floating-column/settings/settings.component.html +++ b/src/app/components/floating-column/settings/settings.component.html @@ -91,16 +91,41 @@ [(ngModel)]="setContentHidedCompletely" placeholder="example;other example" /> -
this settings needs a reload to be effective.
+
this settings needs a reload to be effective.
+ + +

Timelines

+
+ loading behavior:
+ + + +
+ + + +
+ + + +
+ + this settings needs a reload to be effective.

Other

- -
+ (change)="onDisableRemoteStatusFetchingChanged()" type="checkbox" name="disableRemoteFetching" + value="disableRemoteFetching" id="disableRemoteFetching"> + +

About

@@ -128,7 +153,7 @@ (click)="cancelClearAll()"> Cancel -
+
diff --git a/src/app/components/floating-column/settings/settings.component.ts b/src/app/components/floating-column/settings/settings.component.ts index 959111ed..f4c63035 100644 --- a/src/app/components/floating-column/settings/settings.component.ts +++ b/src/app/components/floating-column/settings/settings.component.ts @@ -29,6 +29,9 @@ export class SettingsComponent implements OnInit { columnShortcutEnabled: ColumnShortcut = ColumnShortcut.Ctrl; columnShortcutChanged = false; + timeLineMode: TimeLineMode = TimeLineMode.OnTop; + timeLineModeChanged = false; + contentWarningPolicy: ContentWarningPolicyEnum = ContentWarningPolicyEnum.None; contentWarningPolicyChanged = false; @@ -102,6 +105,13 @@ export class SettingsComponent implements OnInit { this.toolsService.saveSettings(settings); } + onTimeLineModeChange(id: TimeLineMode){ + this.timeLineMode = id; + this.timeLineModeChanged = true; + + + } + onCwPolicyChange(id: ContentWarningPolicyEnum) { this.contentWarningPolicy = id; this.contentWarningPolicyChanged = true; @@ -226,4 +236,10 @@ export class SettingsComponent implements OnInit { enum ColumnShortcut { Ctrl = 1, Win = 2 +} + +enum TimeLineMode { + OnTop = 1, + Continuous = 2, + SlowMode = 3 } \ No newline at end of file