Commit 7a287b56 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch...

Merge branch 'update-deprecated-slot-syntax-in-./app/assets/javascripts/environments/components/environments_app.vue' into 'master'

Update deprecated slot syntax in `./app/assets/javascripts/environments/components/environments_app.vue`

See merge request gitlab-org/gitlab!32011
parents a22347cc 382ac4d6
......@@ -158,13 +158,13 @@ export default {
:deploy-boards-help-path="deployBoardsHelpPath"
@onChangePage="onChangePage"
>
<empty-state
v-if="!isLoading && state.environments.length === 0"
slot="emptyState"
:new-path="newEnvironmentPath"
:help-path="helpPagePath"
:can-create-environment="canCreateEnvironment"
/>
<template v-if="!isLoading && state.environments.length === 0" #emptyState>
<empty-state
:new-path="newEnvironmentPath"
:help-path="helpPagePath"
:can-create-environment="canCreateEnvironment"
/>
</template>
</container>
</div>
</template>
---
title: Update deprecated slot syntax in ./app/assets/javascripts/environments/components/environments_app.vue
merge_request: 32011
author: Gilang Gumilar
type: other
......@@ -53,7 +53,7 @@ describe('Environment', () => {
describe('without environments', () => {
beforeEach(() => {
mockRequest(200, { environments: [] });
return createWrapper(true);
return createWrapper();
});
it('should render the empty state', () => {
......@@ -118,7 +118,7 @@ describe('Environment', () => {
describe('unsuccessful request', () => {
beforeEach(() => {
mockRequest(500, {});
return createWrapper(true);
return createWrapper();
});
it('should render empty state', () => {
......
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