]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8057 Make current user default option when assigning issues
authorStas Vilchik <vilchiks@gmail.com>
Thu, 15 Sep 2016 11:45:48 +0000 (13:45 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 16 Sep 2016 08:22:24 +0000 (10:22 +0200)
server/sonar-web/src/main/js/components/issue/views/assign-form-view.js

index 3750074803a88ccef18fd887c3a7323df6009e17..c947daedfe413d9f97b0317745ea33302a4afea8 100644 (file)
@@ -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);
   },