Skip to content

Commit 4413dee

Browse files
author
Guillaume Chau
committed
feat(ui): project manager: back button
1 parent e1a0c4c commit 4413dee

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

packages/@vue/cli-ui/src/views/ProjectSelect.vue

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,16 @@
5757
</VueTab>
5858
</StepWizard>
5959

60-
<div class="top-menu">
60+
<div class="top-menu left">
61+
<VueButton
62+
v-if="projectCurrent"
63+
:to="{ name: 'home' }"
64+
class="flat icon-button"
65+
icon-left="arrow_back"
66+
/>
67+
</div>
68+
69+
<div class="top-menu right">
6170
<VueButton
6271
:to="{ name: 'about' }"
6372
class="flat icon-button"
@@ -93,6 +102,7 @@
93102
import FOLDER_CURRENT from '../graphql/folderCurrent.gql'
94103
import PROJECT_INIT_CREATION from '../graphql/projectInitCreation.gql'
95104
import PROJECT_IMPORT from '../graphql/projectImport.gql'
105+
import PROJECT_CURRENT from '../graphql/projectCurrent.gql'
96106
97107
export default {
98108
name: 'ProjectSelect',
@@ -113,7 +123,8 @@ export default {
113123
},
114124
115125
apollo: {
116-
folderCurrent: FOLDER_CURRENT
126+
folderCurrent: FOLDER_CURRENT,
127+
projectCurrent: PROJECT_CURRENT
117128
},
118129
119130
mounted () {
@@ -169,5 +180,8 @@ export default {
169180
.top-menu
170181
position fixed
171182
top $padding-item
172-
right $padding-item
183+
&.left
184+
left $padding-item
185+
&.right
186+
right $padding-item
173187
</style>

0 commit comments

Comments
 (0)