File tree Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 3
3
ref =" form"
4
4
lazy-validation
5
5
v-model =" formValid"
6
- v-if =" item != null && secretStorages != null"
6
+ v-if =" item != null && (!supportStorages || secretStorages != null) "
7
7
class =" pb-3"
8
8
>
9
9
<v-alert
Original file line number Diff line number Diff line change
1
+ export default {
2
+ props : {
3
+ systemInfo : Object ,
4
+ } ,
5
+
6
+ computed : {
7
+
8
+ premiumFeatures ( ) {
9
+ return this . systemInfo ?. premium_features || { } ;
10
+ } ,
11
+
12
+ } ,
13
+ } ;
Original file line number Diff line number Diff line change @@ -363,9 +363,10 @@ import axios from 'axios';
363
363
import DashboardMenu from ' @/components/DashboardMenu.vue' ;
364
364
import delay from ' @/lib/delay' ;
365
365
import CopyClipboardButton from ' @/components/CopyClipboardButton.vue' ;
366
+ import PageMixin from ' @/components/PageMixin' ;
366
367
367
368
export default {
368
- mixins: [ItemListPageBase],
369
+ mixins: [ItemListPageBase, PageMixin ],
369
370
370
371
components: {
371
372
CopyClipboardButton,
@@ -376,7 +377,6 @@ export default {
376
377
},
377
378
378
379
props: {
379
- systemInfo: Object ,
380
380
projectId: Number ,
381
381
},
382
382
@@ -385,10 +385,6 @@ export default {
385
385
return this .systemInfo ? .web_host || window .location .origin ;
386
386
},
387
387
388
- premiumFeatures () {
389
- return this .systemInfo ? .premium_features || {};
390
- },
391
-
392
388
version () {
393
389
return (this .systemInfo ? .version || ' ' ).split (' -' )[0 ];
394
390
},
Original file line number Diff line number Diff line change 19
19
:need-save =" needSave"
20
20
:need-reset =" needReset"
21
21
:need-help =" needHelp"
22
- :support-storages =" systemInfo.premium_features? .secret_storages"
22
+ :support-storages =" premiumFeatures .secret_storages"
23
23
@maximize =" editNoEscape = $event.maximized"
24
24
/>
25
25
</template >
81
81
<script >
82
82
import ItemListPageBase from ' @/components/ItemListPageBase' ;
83
83
import EnvironmentForm from ' @/components/EnvironmentForm.vue' ;
84
+ import PageMixin from ' @/components/PageMixin' ;
84
85
85
86
export default {
86
87
components: { EnvironmentForm },
87
- mixins: [ItemListPageBase],
88
+ mixins: [ItemListPageBase, PageMixin ],
88
89
data () {
89
90
return {
90
91
editNoEscape: false ,
91
- systemInfo: Object ,
92
92
};
93
93
},
94
94
methods: {
Original file line number Diff line number Diff line change 104
104
<script >
105
105
import ItemListPageBase from ' @/components/ItemListPageBase' ;
106
106
import KeyForm from ' @/components/KeyForm.vue' ;
107
+ import PageMixin from ' @/components/PageMixin' ;
107
108
108
109
export default {
109
110
components: { KeyForm },
110
111
111
- mixins: [ItemListPageBase],
112
+ mixins: [ItemListPageBase, PageMixin ],
112
113
113
114
props: {
114
115
systemInfo: Object ,
115
116
},
116
117
117
- computed: {
118
- premiumFeatures () {
119
- return this .systemInfo ? .premium_features || {};
120
- },
121
- },
122
-
123
118
methods: {
124
119
getHeaders () {
125
120
return [{
You can’t perform that action at this time.
0 commit comments