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 { ...@@ -158,13 +158,13 @@ export default {
:deploy-boards-help-path="deployBoardsHelpPath" :deploy-boards-help-path="deployBoardsHelpPath"
@onChangePage="onChangePage" @onChangePage="onChangePage"
> >
<empty-state <template v-if="!isLoading && state.environments.length === 0" #emptyState>
v-if="!isLoading && state.environments.length === 0" <empty-state
slot="emptyState" :new-path="newEnvironmentPath"
:new-path="newEnvironmentPath" :help-path="helpPagePath"
:help-path="helpPagePath" :can-create-environment="canCreateEnvironment"
:can-create-environment="canCreateEnvironment" />
/> </template>
</container> </container>
</div> </div>
</template> </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', () => { ...@@ -53,7 +53,7 @@ describe('Environment', () => {
describe('without environments', () => { describe('without environments', () => {
beforeEach(() => { beforeEach(() => {
mockRequest(200, { environments: [] }); mockRequest(200, { environments: [] });
return createWrapper(true); return createWrapper();
}); });
it('should render the empty state', () => { it('should render the empty state', () => {
...@@ -118,7 +118,7 @@ describe('Environment', () => { ...@@ -118,7 +118,7 @@ describe('Environment', () => {
describe('unsuccessful request', () => { describe('unsuccessful request', () => {
beforeEach(() => { beforeEach(() => {
mockRequest(500, {}); mockRequest(500, {});
return createWrapper(true); return createWrapper();
}); });
it('should render empty state', () => { 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