Skip to content

Commit

Permalink
feat(ui): project manager: back button
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jun 17, 2018
1 parent e1a0c4c commit 4413dee
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions packages/@vue/cli-ui/src/views/ProjectSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,16 @@
</VueTab>
</StepWizard>

<div class="top-menu">
<div class="top-menu left">
<VueButton
v-if="projectCurrent"
:to="{ name: 'home' }"
class="flat icon-button"
icon-left="arrow_back"
/>
</div>

<div class="top-menu right">
<VueButton
:to="{ name: 'about' }"
class="flat icon-button"
Expand Down Expand Up @@ -93,6 +102,7 @@
import FOLDER_CURRENT from '../graphql/folderCurrent.gql'
import PROJECT_INIT_CREATION from '../graphql/projectInitCreation.gql'
import PROJECT_IMPORT from '../graphql/projectImport.gql'
import PROJECT_CURRENT from '../graphql/projectCurrent.gql'
export default {
name: 'ProjectSelect',
Expand All @@ -113,7 +123,8 @@ export default {
},
apollo: {
folderCurrent: FOLDER_CURRENT
folderCurrent: FOLDER_CURRENT,
projectCurrent: PROJECT_CURRENT
},
mounted () {
Expand Down Expand Up @@ -169,5 +180,8 @@ export default {
.top-menu
position fixed
top $padding-item
right $padding-item
&.left
left $padding-item
&.right
right $padding-item
</style>

0 comments on commit 4413dee

Please sign in to comment.