Commit 382ac4d6 authored by Gilang Gumilar's avatar Gilang Gumilar Committed by Andrew Fontaine

Update deprecated slot syntax in...

Update deprecated slot syntax in `./app/assets/javascripts/environments/components/environments_app.vue`
parent 5f0c1a4c
...@@ -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"
> >
<template v-if="!isLoading && state.environments.length === 0" #emptyState>
<empty-state <empty-state
v-if="!isLoading && state.environments.length === 0"
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