WIP
This commit is contained in:
		
							parent
							
								
									0ca2d22249
								
							
						
					
					
						commit
						19c2542499
					
				|  | @ -1,4 +1,5 @@ | |||
| <Assignment | ||||
|   @assigneeError={{this.assigneeError}} | ||||
|   @model={{@model}} | ||||
|   @note={{@model.note}} | ||||
|   @status={{@model.status}} | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ export default class AssignUserForm extends Component { | |||
| 
 | ||||
|   @action | ||||
|   async assign() { | ||||
|     console.log("ass"); | ||||
|     if (!this.assigneeName) { | ||||
|       this.assigneeError = true; | ||||
|       return; | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| <div class="control-group {{if this.assigneeError 'assignee-error'}}"> | ||||
| <div class="control-group {{if @assigneeError 'assignee-error'}}"> | ||||
|   <label>{{i18n "discourse_assign.assign_modal.assignee_label"}}</label> | ||||
|   <AssigneeChooser | ||||
|     autocomplete="off" | ||||
|  | @ -21,7 +21,7 @@ | |||
|   }} | ||||
|   /> | ||||
| 
 | ||||
|   {{#if this.assigneeError}} | ||||
|   {{#if @assigneeError}} | ||||
|     <span class="error-label"> | ||||
|       {{d-icon "exclamation-triangle"}} | ||||
|       {{i18n "discourse_assign.assign_modal.choose_assignee"}} | ||||
|  |  | |||
|  | @ -31,7 +31,7 @@ export default class Assignment extends Component { | |||
|   @action | ||||
|   setAssignee([newAssignee]) { | ||||
|     this.assignee = newAssignee; | ||||
|     // this.assigneeError = false; fixme andrei
 | ||||
|     this.args.assigneeError = false; | ||||
| 
 | ||||
|     if (this.taskActions.allowedGroupsForAssignment.includes(newAssignee)) { | ||||
|       this.args.model.username = null; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue