diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-04 15:55:01 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-10 10:14:23 +0100 |
commit | cbfc97b112849299b0aaf3b5155e278d3db17c91 (patch) | |
tree | c1073fe96c01432190395459e028ba595e0bf569 /app/assets/javascripts/sidebar | |
parent | 6c97107d37771522d1deec6007a791332270ba6f (diff) | |
download | gitlab-ce-cbfc97b112849299b0aaf3b5155e278d3db17c91.tar.gz |
karma spec fixes
Diffstat (limited to 'app/assets/javascripts/sidebar')
-rw-r--r-- | app/assets/javascripts/sidebar/lib/sidebar_move_issue.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/sidebar/lib/sidebar_move_issue.js b/app/assets/javascripts/sidebar/lib/sidebar_move_issue.js index ecc0f0d21f5..977dd83a7ea 100644 --- a/app/assets/javascripts/sidebar/lib/sidebar_move_issue.js +++ b/app/assets/javascripts/sidebar/lib/sidebar_move_issue.js @@ -1,5 +1,3 @@ -import Flash from '../../flash'; - function isValidProjectId(id) { return id > 0; } @@ -38,7 +36,7 @@ class SidebarMoveIssue { data: (searchTerm, callback) => { this.mediator.fetchAutocompleteProjects(searchTerm) .then(callback) - .catch(() => new Flash('An error occurred while fetching projects autocomplete.')); + .catch(() => new window.Flash('An error occurred while fetching projects autocomplete.')); }, renderRow: project => ` <li> @@ -73,7 +71,7 @@ class SidebarMoveIssue { this.mediator.moveIssue() .catch(() => { - Flash('An error occurred while moving the issue.'); + window.Flash('An error occurred while moving the issue.'); this.$confirmButton .enable() .removeClass('is-loading'); |