[O] Optimize onclick method call

This commit is contained in:
Hykilpikonna
2019-11-06 20:02:41 -05:00
parent 1aea558c40
commit c6c3303a99
2 changed files with 1 additions and 10 deletions
-9
View File
@@ -183,13 +183,4 @@ export default class Navigation extends Vue
if (this.selectedTime == 'All Year') return -1;
else return +this.selectedTime.replace('Term ', '') - 1;
}
/**
* This function is called when the sign out button is clicked.
*/
public signOut()
{
// Call custom event
this.$emit('sign-out');
}
}
+1 -1
View File
@@ -30,7 +30,7 @@
</el-dropdown-menu>
</el-dropdown>
<el-button @click="signOut" id="sign-out-button" type="text">Sign Out</el-button>
<el-button @click="$emit('sign-out')" id="sign-out-button" type="text">Sign Out</el-button>
</el-menu>
<!-- Previous course / Next course (Only when the page is courses) -->