WIP - Initial change UserOptions

This commit is contained in:
kiswa 2016-07-22 20:21:58 +00:00
parent 2dff84b33f
commit 9a4d0d9657
2 changed files with 17 additions and 6 deletions

View File

@ -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>

View File

@ -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;