]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8562 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Mon, 9 Jan 2017 13:38:41 +0000 (14:38 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 9 Jan 2017 13:38:41 +0000 (14:38 +0100)
server/sonar-web/src/main/js/apps/issues/BulkChangeForm.js
server/sonar-web/src/main/js/apps/issues/templates/BulkChangeForm.hbs

index 302033520c86112eb5c167561765ca0be7cc2a6a..3ff21ded414874368db78196ce81aa394ee5a9d0 100644 (file)
@@ -153,11 +153,6 @@ export default ModalForm.extend({
     this.prepareTagsInput();
   },
 
-  handleErrors (response) {
-    const message = response['err_msg'] ? translate(response['err_msg']) : translate('default_error_message');
-    this.showErrors([{ msg: message }]);
-  },
-
   onFormSubmit () {
     ModalForm.prototype.onFormSubmit.apply(this, arguments);
     const actions = [];
@@ -222,7 +217,7 @@ export default ModalForm.extend({
         (e: Object) => {
           this.enableForm();
           this.hideSpinner();
-          e.response.json().then(r => this.handleErrors(r));
+          e.response.json().then(r => this.showErrors(r.errors, r.warnings));
         }
     );
   },
index 85f568c96158a14c8636d5cee7b63130fda29fe9..fda291ab2b3692c6833fedcc5e389b23e3ee9d55 100644 (file)
   </div>
   <div class="modal-body">
     <div class="js-modal-messages"></div>
-    <i class="icon-spinner"></i>
+    <div class="text-center">
+      <i class="spinner spinner-margin"></i>
+    </div>
   </div>
   <div class="modal-foot">
-    &nbsp;
+    <a id="bulk-change-cancel" href="#" class="js-modal-close">{{t 'cancel'}}</a>
   </div>
 {{/if}}