summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/build_artifacts.js
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-11-21 16:13:04 +0100
committerWinnie Hellmann <winnie@gitlab.com>2018-11-27 09:18:48 +0100
commit8ef51157950366f64cbd41ccf070e1facd104cae (patch)
tree2d90860267ccfb8737b903a296b4c6ca16259ce1 /app/assets/javascripts/build_artifacts.js
parent47fad3353f9ef510a11f2f690e8c2f6ae492fffd (diff)
downloadgitlab-ce-8ef51157950366f64cbd41ccf070e1facd104cae.tar.gz
Replace convertPermissionToBoolean with parseBoolean
Diffstat (limited to 'app/assets/javascripts/build_artifacts.js')
-rw-r--r--app/assets/javascripts/build_artifacts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/build_artifacts.js b/app/assets/javascripts/build_artifacts.js
index 97a1645aa51..b2c88e8c14e 100644
--- a/app/assets/javascripts/build_artifacts.js
+++ b/app/assets/javascripts/build_artifacts.js
@@ -2,7 +2,7 @@
import $ from 'jquery';
import { visitUrl } from './lib/utils/url_utility';
-import { convertPermissionToBoolean } from './lib/utils/common_utils';
+import { parseBoolean } from './lib/utils/common_utils';
export default class BuildArtifacts {
constructor() {
@@ -22,7 +22,7 @@ export default class BuildArtifacts {
// eslint-disable-next-line class-methods-use-this
setupEntryClick() {
return $('.tree-holder').on('click', 'tr[data-link]', function() {
- visitUrl(this.dataset.link, convertPermissionToBoolean(this.dataset.externalLink));
+ visitUrl(this.dataset.link, parseBoolean(this.dataset.externalLink));
});
}
// eslint-disable-next-line class-methods-use-this