From: Stas Vilchik Date: Thu, 15 Sep 2016 11:45:48 +0000 (+0200) Subject: SONAR-8057 Make current user default option when assigning issues X-Git-Tag: 6.1-RC1~57 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b70227d79af5e2d0f00e72c27a1c47002d8c079e;p=sonarqube.git SONAR-8057 Make current user default option when assigning issues --- diff --git a/server/sonar-web/src/main/js/components/issue/views/assign-form-view.js b/server/sonar-web/src/main/js/components/issue/views/assign-form-view.js index 3750074803a..c947daedfe4 100644 --- a/server/sonar-web/src/main/js/components/issue/views/assign-form-view.js +++ b/server/sonar-web/src/main/js/components/issue/views/assign-form-view.js @@ -142,13 +142,10 @@ export default ActionOptionsView.extend({ if (this.assignees) { return this.assignees; } - const assignees = [{ id: '', text: translate('unassigned') }]; - const currentUser = window.SS.user; - const currentUserName = window.SS.userName; - assignees.push({ id: currentUser, text: currentUserName }); - if (this.getAssignee()) { - assignees.push({ id: this.getAssignee(), text: this.getAssigneeName() }); - } + const assignees = [ + { id: window.SS.user, text: window.SS.userName }, + { id: '', text: translate('unassigned') } + ]; return this.makeUnique(assignees); },