File tree 4 files changed +24
-13
lines changed
4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" step-wizard" >
2
+ <div
3
+ class =" step-wizard"
4
+ :class =" {
5
+ 'hide-tabs': hideTabs
6
+ }"
7
+ >
3
8
<div class =" header" >
4
9
<div v-if =" title" class =" title" >{{ title }}</div >
5
10
</div >
@@ -24,6 +29,11 @@ export default {
24
29
inheritAttrs: false ,
25
30
26
31
props: {
32
+ hideTabs: {
33
+ type: Boolean ,
34
+ default: false
35
+ },
36
+
27
37
title: {
28
38
type: String ,
29
39
default: null
@@ -38,12 +48,11 @@ export default {
38
48
previous () {
39
49
const tabs = this .$refs .tabs
40
50
tabs .activateChild (tabs .activeChildIndex - 1 )
41
- },
51
+ }
42
52
}
43
53
}
44
54
</script >
45
55
46
-
47
56
<style lang="stylus" scoped>
48
57
@import "~@/style/imports"
49
58
@@ -86,4 +95,8 @@ export default {
86
95
text-align center
87
96
font-weight lighter
88
97
98
+ & .hide-tabs
99
+ >>> .tabs
100
+ display none
101
+
89
102
</style >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
<div class =" project-details vue-grid col-1 big-gap" >
15
15
<VueFormField
16
16
title =" Project folder"
17
+ :subtitle =" cwd"
17
18
>
18
19
<VueInput
19
20
v-model =" formData.folder"
24
25
25
26
<VueButton
26
27
label =" Change current working directory"
27
- :to =" { name: 'project-select', query: { tab: 'create' } }"
28
+ :to =" { name: 'project-select', query: { tab: 'create', hideTabs: true } }"
28
29
/>
29
30
</VueFormField >
30
31
@@ -265,8 +266,8 @@ import ProjectPresetItem from '../components/ProjectPresetItem'
265
266
import StatusBar from ' ../components/StatusBar'
266
267
import StepWizard from ' ../components/StepWizard'
267
268
269
+ import CWD from ' ../graphql/cwd.gql'
268
270
import PROJECT_CREATION from ' ../graphql/projectCreation.gql'
269
- import PROJECT_INIT_CREATE from ' ../graphql/projectInitCreate.gql'
270
271
271
272
function formDataFactory () {
272
273
return {
@@ -292,13 +293,15 @@ export default {
292
293
data () {
293
294
return {
294
295
formData: formData,
296
+ cwd: ' ' ,
295
297
projectCreation: null ,
296
298
showCancel: false ,
297
299
showRemotePreset: false
298
300
}
299
301
},
300
302
301
303
apollo: {
304
+ cwd: CWD ,
302
305
projectCreation: PROJECT_CREATION
303
306
},
304
307
Original file line number Diff line number Diff line change 3
3
<StepWizard
4
4
:tab-id.sync =" tab"
5
5
title =" Vue Project Manager"
6
+ :hide-tabs =" hideTabs"
6
7
>
7
8
<VueTab
8
9
id =" existing"
@@ -70,7 +71,8 @@ export default {
70
71
data () {
71
72
return {
72
73
folderCurrent: {},
73
- tab: undefined
74
+ tab: undefined ,
75
+ hideTabs: this .$route .query .hideTabs
74
76
}
75
77
},
76
78
You can’t perform that action at this time.
0 commit comments