summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/blob/blob_dockerfile_selector.js.es6
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/blob/blob_dockerfile_selector.js.es6')
-rw-r--r--app/assets/javascripts/blob/blob_dockerfile_selector.js.es618
1 files changed, 18 insertions, 0 deletions
diff --git a/app/assets/javascripts/blob/blob_dockerfile_selector.js.es6 b/app/assets/javascripts/blob/blob_dockerfile_selector.js.es6
new file mode 100644
index 00000000000..bdf95017613
--- /dev/null
+++ b/app/assets/javascripts/blob/blob_dockerfile_selector.js.es6
@@ -0,0 +1,18 @@
+/* global Api */
+/*= require blob/template_selector */
+
+(() => {
+ const global = window.gl || (window.gl = {});
+
+ class BlobDockerfileSelector extends gl.TemplateSelector {
+ requestFile(query) {
+ return Api.dockerfileYml(query.name, this.requestFileSuccess.bind(this));
+ }
+
+ requestFileSuccess(file) {
+ return super.requestFileSuccess(file);
+ }
+ }
+
+ global.BlobDockerfileSelector = BlobDockerfileSelector;
+})();