summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/utils/invalid_url.js
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2019-06-06 08:03:30 +1000
committerSimon Knox <psimyn@gmail.com>2019-06-07 21:39:03 +1000
commitfba991dc482f726f7f5afd0ef4facbc1552e8d3c (patch)
tree9699faa10e2dd1f5feda79c9166d4b3e7c382447 /app/assets/javascripts/lib/utils/invalid_url.js
parentecdc50b198796275b5f0862c5cdb0dca5aac1213 (diff)
downloadgitlab-ce-fba991dc482f726f7f5afd0ef4facbc1552e8d3c.tar.gz
Add feature flag and dashboard endpointprom-api-2
First part of FE for Prometheus API Dashboard endpoint fetches all info except for chart results Renders empty groups after loading
Diffstat (limited to 'app/assets/javascripts/lib/utils/invalid_url.js')
-rw-r--r--app/assets/javascripts/lib/utils/invalid_url.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/invalid_url.js b/app/assets/javascripts/lib/utils/invalid_url.js
new file mode 100644
index 00000000000..481bd059fc9
--- /dev/null
+++ b/app/assets/javascripts/lib/utils/invalid_url.js
@@ -0,0 +1,6 @@
+/**
+ * Invalid URL that ensures we don't make a network request
+ * Can be used as a default value for URLs. Using an empty
+ * string can still result in request being made to the current page
+ */
+export default 'https://invalid';