File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 55 <!-- <img src='./assets/ImpVis-logo.png' alt="ImpVisLogo" height="50"/> -->
66 <h1 > Welcome to Imperial Visualisations!</h1 >
77 <p > Your project, {{projectName}} has succesfully been set up using the NodeJS template!</p >
8- <iv-hover-text ></iv-hover-text >
98 </div >
109
1110
1918 <iv-reset-button > Reset </iv-reset-button >
2019
2120 <iv-toggle-basic > </iv-toggle-basic >
22-
23- <!-- < iv-resetbutton> Reset </iv-resetbutton> -- >
21+ < iv-toggle-advance ></ iv-toggle-advance >
22+ <iv-tickbox > </iv-tickbox >
2423
2524 </iv-toggle-hotspot >
2625
2726
28-
29-
3027 <iv-fixed-hotspot position =' topright' >
3128 I am in a fixed hotspot
3229 </iv-fixed-hotspot >
Original file line number Diff line number Diff line change 55
66<script >
77import { eventBus } from " @/buses/eventBus" ;
8- // import SymbolButton from "SymbolButton.js";
98export default {
109 name: " iv-reset-button" ,
1110 methods: {
@@ -16,9 +15,8 @@ export default {
1615 this .$emit (" mouseleave" ,e)
1716 },
1817 buttonClick (e ){
19- let resetChoice= true ;
2018 this .$emit (" click" , e)
21- eventBus .$emit (" reset-data" , resetChoice)
19+ eventBus .$emit (" reset-data" , this . resetChoice )
2220 },
2321 },
2422 props: {
@@ -27,6 +25,11 @@ export default {
2725 required: false ,
2826 default: false
2927 },
28+ resetChoice: {
29+ type: Boolean ,
30+ required: false ,
31+ default: true ,
32+ }
3033
3134 }
3235}
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ export default {
161161
162162
163163 eventBus .$on (" reset-data" , data => {
164- console .log (" slider!" )
165164 console .log (data);
166165
167166 this .value = this .init_val ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default {
3434 this .$emit (" unchecked" , this .checkboxStatus )
3535 }
3636 }
37- }
37+ },
3838}
3939 </script >
4040<style >
Original file line number Diff line number Diff line change 55</template >
66
77<script >
8- import ToggleAdvanceButton from " ./ToggleAdvanceButton.vue"
8+ import ToggleAdvanceButton from " ./ToggleAdvanceButton.vue" ;
9+ import {eventBus } from " @/buses/eventBus" ;
10+
911export default {
1012 name: " iv-toggle-advance" ,
1113 components: {" iv-toggle-advance-button" : ToggleAdvanceButton},
@@ -42,6 +44,12 @@ export default {
4244 return false ;
4345 }
4446 }
47+ },
48+ mounted (){
49+ eventBus .$on (" reset-data" , data => {
50+ console .log (data);
51+ this .toggleModeIndex = this .initialModeIndex ;
52+ });
4553 }
4654}
4755 </script >
Original file line number Diff line number Diff line change @@ -55,15 +55,8 @@ export default {
5555 mounted (){
5656 eventBus .$on (" reset-data" , data => {
5757 console .log (data);
58- console .log (" made it!" )
5958 this .toggleValue = 0 ;
60- console .log (this .toggleValue )
6159 });
62-
63-
64-
65-
66-
6760 }
6861};
6962 </script >
You can’t perform that action at this time.
0 commit comments