Commit ba0163a5 authored by Juan J. Ramirez's avatar Juan J. Ramirez Committed by Natalia Tepluhina

Migration of Serverless Section "Install Prometheus" Button

parent c580b306
<script> <script>
import { GlDeprecatedButton, GlLink } from '@gitlab/ui'; import { GlButton, GlLink } from '@gitlab/ui';
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import { s__ } from '../../locale'; import { s__ } from '../../locale';
export default { export default {
components: { components: {
GlDeprecatedButton, GlButton,
GlLink, GlLink,
}, },
props: { props: {
...@@ -47,9 +47,9 @@ export default { ...@@ -47,9 +47,9 @@ export default {
</p> </p>
<div v-if="!missingData" class="text-left"> <div v-if="!missingData" class="text-left">
<gl-deprecated-button :href="clustersPath" variant="success"> <gl-button :href="clustersPath" variant="success" category="primary">
{{ s__('ServerlessDetails|Install Prometheus') }} {{ s__('ServerlessDetails|Install Prometheus') }}
</gl-deprecated-button> </gl-button>
</div> </div>
</div> </div>
</div> </div>
......
import { GlDeprecatedButton } from '@gitlab/ui'; import { GlButton } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import { createStore } from '~/serverless/store'; import { createStore } from '~/serverless/store';
import missingPrometheusComponent from '~/serverless/components/missing_prometheus.vue'; import missingPrometheusComponent from '~/serverless/components/missing_prometheus.vue';
...@@ -24,7 +24,7 @@ describe('missingPrometheusComponent', () => { ...@@ -24,7 +24,7 @@ describe('missingPrometheusComponent', () => {
'Function invocation metrics require Prometheus to be installed first.', 'Function invocation metrics require Prometheus to be installed first.',
); );
expect(wrapper.find(GlDeprecatedButton).attributes('variant')).toBe('success'); expect(wrapper.find(GlButton).attributes('variant')).toBe('success');
}); });
it('should render no prometheus data message', () => { it('should render no prometheus data message', () => {
......
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