File tree 3 files changed +27
-9
lines changed
3 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -513,11 +513,18 @@ export default {
513
513
});
514
514
},
515
515
createObject() {
516
+ let createRequest = {
517
+ dfiq_type: this .localObject .type ,
518
+ dfiq_yaml: this .localObject .dfiq_yaml ,
519
+ update_indicators: false
520
+ };
521
+
522
+ if (this .localObject .type === " approach" ) {
523
+ createRequest .update_indicators = this .updateApproachIndicators ;
524
+ }
525
+
516
526
axios
517
- .post (` /api/v2/dfiq/from_yaml ` , {
518
- dfiq_type: this .localObject .type ,
519
- dfiq_yaml: this .localObject .dfiq_yaml
520
- })
527
+ .post (` /api/v2/dfiq/from_yaml ` , createRequest )
521
528
.then (response => {
522
529
this .$eventBus .emit (" displayMessage" , {
523
530
message: " DFIQ object succesfully created" ,
Original file line number Diff line number Diff line change 97
97
@deleteSuccess =" obj => emitDFIQUpdate(obj)"
98
98
@toggle-fullscreen =" toggleFullscreen"
99
99
/>
100
+ <edit-object
101
+ v-else
102
+ :object =" dfiqTree.object"
103
+ :is-active =" isActive"
104
+ @success =" obj => (dfiqTree.object = obj)"
105
+ @toggle-fullscreen =" toggleFullscreen"
106
+ />
100
107
</template >
101
108
</v-dialog >
102
109
@@ -165,10 +172,12 @@ import { DFIQ_TYPES } from "@/definitions/dfiqDefinitions.js";
165
172
import { INDICATOR_TYPES } from " @/definitions/indicatorDefinitions.js" ;
166
173
167
174
import EditDFIQObject from " @/components/DFIQ/EditDFIQObject.vue" ;
175
+ import EditObject from " @/components/EditObject.vue" ;
168
176
169
177
export default {
170
178
components: {
171
- EditDFIQObject
179
+ EditDFIQObject ,
180
+ EditObject
172
181
},
173
182
props: {
174
183
dfiqObject: {
Original file line number Diff line number Diff line change 2
2
<v-sheet >
3
3
<div class =" text-h6" >{{ description.summary }}</div >
4
4
<div class =" yeti-markdown" v-html =" markdownifyText(description.details)" ></div >
5
- <div class =" mt-5" >
5
+ <div class =" mt-5" v-if = " description.references.length > 0 " >
6
6
<div class =" font-weight-bold mb-2" >References:</div >
7
7
<ul class =" ml-5" >
8
8
<li class =" mb-2" v-for =" ref in description.references" ><span v-html =" markdownifyText(ref)" ></span ></li >
13
13
</li >
14
14
</ul >
15
15
</div >
16
+ <div v-else class =" mt-5" ><em >No references</em ></div >
16
17
</v-sheet >
17
18
18
- <v-divider class =" my-7" ></v-divider >
19
+ <v-divider class =" my-7" v-if =" view.notes.covered.length + view.notes.not_covered.length > 0" ></v-divider >
20
+ <div class =" mt-5" v-else ><em >No coverage data</em ></div >
19
21
20
- <v-card class =" dfiq-covered ma-4" >
22
+ <v-card class =" dfiq-covered ma-4" v-if = " view.notes.covered.length > 0 " >
21
23
<v-card-title >Covered</v-card-title >
22
24
<v-card-text >
23
25
<ul >
26
28
</v-card-text >
27
29
</v-card >
28
30
29
- <v-card class =" dfiq-not-covered ma-4" >
31
+ <v-card class =" dfiq-not-covered ma-4" v-if = " view.notes.not_covered.length > 0 " >
30
32
<v-card-title >Not covered</v-card-title >
31
33
<v-card-text >
32
34
<ul >
You can’t perform that action at this time.
0 commit comments