tunnel: intiation de la com officielle
major_edits: mail dans liens + graff overlay + simple click dans panneau 'à propos'
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
<script>
|
||||
export default {
|
||||
name : 'InfoContent',
|
||||
emits: ['themeDark', 'themeLight'],
|
||||
data(){
|
||||
return{
|
||||
isChecked: false
|
||||
@@ -131,9 +132,11 @@
|
||||
toggleTheme(){
|
||||
if(this.isChecked){
|
||||
this.isChecked = false;
|
||||
this.$emit('themeLight');
|
||||
return document.documentElement.setAttribute("data-theme", "light")
|
||||
}else{
|
||||
this.isChecked = true;
|
||||
this.$emit('themeDark');
|
||||
return document.documentElement.setAttribute("data-theme", "dark")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user