gitlab-org--gitlab-foss/app/assets/javascripts/blob/blob_dockerfile_selector.js.es6
Luke "Jared" Bennett dcd20236ec
Refactored JS
Added spec
2016-11-08 13:54:58 +00:00

18 lines
438 B
JavaScript

/* 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;
})();