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