Skip to content

Commit

Permalink
fix(ui): project create change folder not working in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Apr 29, 2018
1 parent a55cec7 commit 2927095
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 1 addition & 3 deletions packages/@vue/cli-ui/src/views/ProjectCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@
:to="{
name: 'project-select',
query: {
title: $t('views.project-create.title'),
tab: 'create',
hideTabs: true,
action: $t('views.project-create.tabs.details.form.folder.action')
hideTabs: true
}
}"
/>
Expand Down
12 changes: 7 additions & 5 deletions packages/@vue/cli-ui/src/views/ProjectSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="project-select page">
<StepWizard
:tab-id.sync="tab"
:title="$route.query.title || $t('views.project-select.title')"
:title="$route.query.hideTabs ? $t('views.project-create.title') : $t('views.project-select.title')"
:hide-tabs="!!hideTabs"
class="frame"
>
Expand All @@ -26,7 +26,7 @@
<div class="actions-bar center">
<VueButton
icon-left="add"
:label="$route.query.action || $t('views.project-select.buttons.create')"
:label="$route.query.hideTabs ? $t('views.project-create.tabs.details.form.folder.action') : $t('views.project-select.buttons.create')"
class="big primary"
:to="{ name: 'project-create' }"
/>
Expand Down Expand Up @@ -81,9 +81,11 @@ export default {
folderCurrent: FOLDER_CURRENT
},
async mounted () {
await this.$nextTick()
this.tab = this.$route.query.tab || 'existing'
mounted () {
// Fix issue with Firefox
setTimeout(() => {
this.tab = this.$route.query.tab || 'existing'
})
},
methods: {
Expand Down

0 comments on commit 2927095

Please sign in to comment.