Commit 02addd99 authored by Mike Greiling's avatar Mike Greiling

Fix eslint violations and update locale strings

parent 311425ec
...@@ -22,7 +22,6 @@ export default function initServerlessSurveyBanner() { ...@@ -22,7 +22,6 @@ export default function initServerlessSurveyBanner() {
SURVEY_URL_BASE, SURVEY_URL_BASE,
); );
// eslint-disable-next-line no-new
bannerInstance = new Vue({ bannerInstance = new Vue({
el, el,
render(createElement) { render(createElement) {
......
...@@ -2,23 +2,27 @@ ...@@ -2,23 +2,27 @@
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import { parseBoolean } from '~/lib/utils/common_utils'; import { parseBoolean } from '~/lib/utils/common_utils';
import { GlBanner } from '@gitlab/ui'; import { GlBanner } from '@gitlab/ui';
import { s__ } from '../locale';
export default { export default {
components: { components: {
GlBanner, GlBanner,
}, },
data() {
return {
visible: true,
};
},
props: { props: {
surveyUrl: { surveyUrl: {
type: String, type: String,
required: true, required: true,
}, },
}, },
data() {
return {
visible: true,
};
},
created() {
if (parseBoolean(Cookies.get('hide_serverless_survey'))) {
this.visible = false;
}
},
methods: { methods: {
handleClose() { handleClose() {
Cookies.set('hide_serverless_survey', 'true', { Cookies.set('hide_serverless_survey', 'true', {
...@@ -28,11 +32,6 @@ export default { ...@@ -28,11 +32,6 @@ export default {
this.visible = false; this.visible = false;
}, },
}, },
beforeMount() {
if (parseBoolean(Cookies.get('hide_serverless_survey'))) {
this.visible = false;
}
},
}; };
</script> </script>
......
...@@ -10446,6 +10446,9 @@ msgstr "" ...@@ -10446,6 +10446,9 @@ msgstr ""
msgid "Help page text and support page url." msgid "Help page text and support page url."
msgstr "" msgstr ""
msgid "Help shape the future of Serverless at GitLab"
msgstr ""
msgid "Helps prevent bots from brute-force attacks." msgid "Helps prevent bots from brute-force attacks."
msgstr "" msgstr ""
...@@ -17954,6 +17957,9 @@ msgstr "" ...@@ -17954,6 +17957,9 @@ msgstr ""
msgid "Serverless|No functions available" msgid "Serverless|No functions available"
msgstr "" msgstr ""
msgid "Serverless|Sign up for First Look"
msgstr ""
msgid "Serverless|The deploy job has not finished." msgid "Serverless|The deploy job has not finished."
msgstr "" msgstr ""
...@@ -17963,6 +17969,9 @@ msgstr "" ...@@ -17963,6 +17969,9 @@ msgstr ""
msgid "Serverless|There is currently no function data available from Knative. This could be for a variety of reasons including:" msgid "Serverless|There is currently no function data available from Knative. This could be for a variety of reasons including:"
msgstr "" msgstr ""
msgid "Serverless|We are continually striving to improve our Serverless functionality. As a Knative user, we would love to hear how we can make this experience better for you. Sign up for GitLab First Look today and we will be in touch shortly."
msgstr ""
msgid "Serverless|Your %{startTag}.gitlab-ci.yml%{endTag} file is not properly configured." msgid "Serverless|Your %{startTag}.gitlab-ci.yml%{endTag} file is not properly configured."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment