WIP - Initial change UserOptions
This commit is contained in:
parent
2dff84b33f
commit
9a4d0d9657
@ -35,14 +35,17 @@
|
||||
</label>
|
||||
<label>
|
||||
New tasks appear at column
|
||||
<select class="autosize">
|
||||
<option>bottom</option>
|
||||
<option>top</option>
|
||||
<select class="autosize"
|
||||
[ngModel]="userOptions.new_tasks_at_bottom"
|
||||
(ngModelChange)="onOptionChange('tasks', $event)">
|
||||
<option value="true">bottom</option>
|
||||
<option value="false">top</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
Display tasks side-by-side in colums?
|
||||
<input type="checkbox">
|
||||
<input type="checkbox"
|
||||
[(ngModel)]="userOptions.multiple_tasks_per_row">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@ -78,11 +81,11 @@
|
||||
<div class="hold-bottom">
|
||||
<label>
|
||||
Show animations?
|
||||
<input type="checkbox" checked>
|
||||
<input type="checkbox" [(ngModel)]="userOptions.show_animations">
|
||||
</label>
|
||||
<label>
|
||||
Show Assignee on task cards?
|
||||
<input type="checkbox" checked>
|
||||
<input type="checkbox" [(ngModel)]="userOptions.show_assignee">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -39,6 +39,14 @@ export class UserSettings implements OnInit {
|
||||
this.resetForms();
|
||||
}
|
||||
|
||||
onOptionChange(option: string, event: any) {
|
||||
switch (option) {
|
||||
case 'tasks':
|
||||
this.userOptions.new_tasks_at_bottom = (event === 'true');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
updatePassword() {
|
||||
this.changePassword.submitted = true;
|
||||
|
||||
|
Reference in New Issue
Block a user