Stop loading spinner on error of issuable templates

This commit is contained in:
Takuya Noguchi 2017-11-11 00:03:51 +09:00
parent ba02e3a5df
commit a3c3878957
2 changed files with 6 additions and 1 deletions

View file

@ -32,8 +32,8 @@ export default class IssuableTemplateSelector extends TemplateSelector {
this.startLoadingSpinner();
Api.issueTemplate(this.namespacePath, this.projectPath, query.name, this.issuableType, (err, currentTemplate) => {
this.currentTemplate = currentTemplate;
if (err) return; // Error handled by global AJAX error handler
this.stopLoadingSpinner();
if (err) return; // Error handled by global AJAX error handler
this.setInputValueToTemplateContent();
});
return;

View file

@ -0,0 +1,5 @@
---
title: Stop loading spinner on error of issuable templates
merge_request: 16600
author: Takuya Noguchi
type: fixed