1919
2020 <!-- buttons for the view state -->
2121 <v-btn
22- class =" black--text mx-1"
23- @click =" editMode"
2422 v-if =" isViewingCrash && canEdit"
23+ class =" mx-1"
24+ color =" primary"
25+ @click =" editMode"
2526 >
2627 <v-icon class =" mr-1" >mdi-pencil</v-icon >
2728 Edit
2829 </v-btn >
2930
3031 <v-btn
31- class =" black--text mx-1"
32- @click =" downloadPdf"
3332 v-if =" isViewingCrash"
33+ class =" mx-1"
34+ color =" info"
3435 :loading =" loadingPdf"
36+ @click =" downloadPdf"
3537 >
3638 <v-icon class =" mr-1" >mdi-printer</v-icon >
3739 Print
192194 <v-checkbox
193195 label =" Canadian"
194196 value =" Canadian"
197+ class =" mt-1 mb-0"
198+ hide-details
195199 v-model =" fields.nation"
196200 :readonly =" isViewingCrash"
197201 ></v-checkbox >
198202 <v-checkbox
199203 label =" American"
200204 value =" American"
205+ class =" my-0"
206+ hide-details
201207 v-model =" fields.nation"
202208 :readonly =" isViewingCrash"
203209 ></v-checkbox >
204210 <v-checkbox
205211 label =" Other"
212+ class =" my-0"
206213 v-model =" otherNation"
207214 @click =" changeNation"
208215 :readonly =" isViewingCrash"
221228 <v-checkbox
222229 label =" Civilian"
223230 value =" Civilian"
231+ class =" mt-1 mb-0"
232+ hide-details
224233 v-model =" fields.militarycivilian"
225234 :readonly =" isViewingCrash"
226235 ></v-checkbox >
227236 <v-checkbox
228237 label =" Military"
229238 value =" Military"
239+ class =" my-0"
240+ hide-details
230241 v-model =" fields.militarycivilian"
231242 :readonly =" isViewingCrash"
232243 ></v-checkbox >
@@ -603,7 +614,6 @@ export default {
603614 };
604615 console .log (data);
605616 if (this .action == ' new' ) {
606- console .log (' api call' );
607617 let resp = await aircrash .post (data);
608618 if (resp .response ) {
609619 if (resp .status == 409 ) {
@@ -621,7 +631,6 @@ export default {
621631 this .$router .push (` /airplane/` );
622632 }
623633 } else {
624- console .log (' in the else' );
625634 await aircrash .put (this .crashID , data);
626635 this .overlay = false ;
627636 this .$router .push ({
@@ -632,7 +641,6 @@ export default {
632641 },
633642 });
634643 }
635- console .log (' At the end ' );
636644 this .overlay = false ;
637645 },
638646 getSources () {
0 commit comments