Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/serverless/components/functions.vue')
-rw-r--r--app/assets/javascripts/serverless/components/functions.vue27
1 files changed, 7 insertions, 20 deletions
diff --git a/app/assets/javascripts/serverless/components/functions.vue b/app/assets/javascripts/serverless/components/functions.vue
index 8fa48134f1f..c44a14f1785 100644
--- a/app/assets/javascripts/serverless/components/functions.vue
+++ b/app/assets/javascripts/serverless/components/functions.vue
@@ -1,6 +1,6 @@
<script>
import { mapState, mapActions, mapGetters } from 'vuex';
-import { GlLoadingIcon } from '@gitlab/ui';
+import { GlLink, GlLoadingIcon } from '@gitlab/ui';
import { sprintf, s__ } from '~/locale';
import EnvironmentRow from './environment_row.vue';
import EmptyState from './empty_state.vue';
@@ -10,24 +10,11 @@ export default {
components: {
EnvironmentRow,
EmptyState,
+ GlLink,
GlLoadingIcon,
},
- props: {
- clustersPath: {
- type: String,
- required: true,
- },
- helpPath: {
- type: String,
- required: true,
- },
- statusPath: {
- type: String,
- required: true,
- },
- },
computed: {
- ...mapState(['installed', 'isLoading', 'hasFunctionData']),
+ ...mapState(['installed', 'isLoading', 'hasFunctionData', 'helpPath', 'statusPath']),
...mapGetters(['getFunctions']),
checkingInstalled() {
@@ -118,14 +105,14 @@ export default {
}}
</p>
<div class="text-center">
- <a :href="helpPath" class="btn btn-success">
- {{ s__('Serverless|Learn more about Serverless') }}
- </a>
+ <gl-link :href="helpPath" class="btn btn-success">{{
+ s__('Serverless|Learn more about Serverless')
+ }}</gl-link>
</div>
</div>
</div>
</div>
- <empty-state v-else :clusters-path="clustersPath" :help-path="helpPath" />
+ <empty-state v-else />
</section>
</template>