Commit e4eddbf2 authored by Sang D NGO's avatar Sang D NGO

one can choose to invite expert or not

parent c62087d2
......@@ -7,7 +7,16 @@
span(aria-hidden="true") ×
h4.modal-title #{__('Lấy ý kiến chuyên gia')}
.modal-body
p
| #{__('Chọn một nhóm chuyên gia:')}
most-expert-auto-complete(experts="$ctrl.experts")
ng-form(name="form")
.form-group
span.p-r-25
| #{__('Đặt lịch họp:')}
toggle-switch(ng-model='$ctrl.invite', color='blue', form="form")
.modal-footer.flex
.flex-vertical-centered.flex-end
button.btn.btn-link(type="button", ng-click="$hide()")
......
......@@ -48,7 +48,11 @@
}
function _inviteExperts() {
mostService.inviteExperts(proposal.formJson.title, self.experts);
if (self.invite) {
return mostService.inviteExperts(proposal.formJson.title, self.experts);
}
return $q.when();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment