mirror of
https://github.com/NicolasConstant/sengi
synced 2025-02-09 00:18:44 +01:00
added timelines settings UI
This commit is contained in:
parent
19bb19c5b0
commit
c2e8247a58
@ -91,15 +91,40 @@
|
||||
[(ngModel)]="setContentHidedCompletely" placeholder="example;other example" />
|
||||
</div>
|
||||
|
||||
<span class="sub-section__title" *ngIf="contentWarningPolicyChanged"><br/>this settings needs a <a href (click)="reload()">reload</a> to be effective.</span>
|
||||
<span class="sub-section__title" *ngIf="contentWarningPolicyChanged"><br />this settings needs a <a href
|
||||
(click)="reload()">reload</a> to be effective.</span>
|
||||
</div>
|
||||
|
||||
<h4 class="panel__subtitle">Timelines</h4>
|
||||
<div class="sub-section">
|
||||
<span class="sub-section__title">loading behavior:</span><br />
|
||||
|
||||
<input class="sub-section__checkbox" [checked]="timeLineMode === 1" (change)="onTimeLineModeChange(1)"
|
||||
type="radio" name="timelinemode-1" value="timelinemode-1" id="timelinemode-1">
|
||||
<label class="noselect sub-section__label" for="timelinemode-1">Load new statuses only on top</label>
|
||||
<br>
|
||||
|
||||
<input class="sub-section__checkbox" [checked]="timeLineMode === 2" (change)="onTimeLineModeChange(2)"
|
||||
type="radio" name="timelinemode-2" value="timelinemode-2" id="timelinemode-2">
|
||||
<label class="noselect sub-section__label" for="timelinemode-2">Continuously loading new statuses</label>
|
||||
<br>
|
||||
|
||||
<input class="sub-section__checkbox" [checked]="timeLineMode === 3" (change)="onTimeLineModeChange(3)"
|
||||
type="radio" name="timelinemode-3" value="timelinemode-3" id="timelinemode-3">
|
||||
<label class="noselect sub-section__label" for="timelinemode-3">Slow mode (manual loading)</label>
|
||||
<br>
|
||||
|
||||
<span class="sub-section__title" *ngIf="timeLineModeChanged">this settings needs a <a href
|
||||
(click)="reload()">reload</a> to be effective.</span>
|
||||
</div>
|
||||
|
||||
<h4 class="panel__subtitle">Other</h4>
|
||||
<div class="sub-section">
|
||||
<input class="sub-section__checkbox" [(ngModel)]="disableRemoteStatusFetchingEnabled"
|
||||
(change)="onDisableRemoteStatusFetchingChanged()" type="checkbox" name="disableRemoteFetching" value="disableRemoteFetching"
|
||||
id="disableRemoteFetching">
|
||||
<label class="noselect sub-section__label" for="disableRemoteFetching">disable remote status fetching</label>
|
||||
(change)="onDisableRemoteStatusFetchingChanged()" type="checkbox" name="disableRemoteFetching"
|
||||
value="disableRemoteFetching" id="disableRemoteFetching">
|
||||
<label class="noselect sub-section__label" for="disableRemoteFetching">disable remote status
|
||||
fetching</label>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
@ -128,7 +153,7 @@
|
||||
(click)="cancelClearAll()">
|
||||
Cancel
|
||||
</a>
|
||||
<br/>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -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;
|
||||
@ -227,3 +237,9 @@ enum ColumnShortcut {
|
||||
Ctrl = 1,
|
||||
Win = 2
|
||||
}
|
||||
|
||||
enum TimeLineMode {
|
||||
OnTop = 1,
|
||||
Continuous = 2,
|
||||
SlowMode = 3
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user