[+] Encapsulate method to get selected time code

This commit is contained in:
Hykilpikonna
2019-11-06 19:11:55 -05:00
parent 43f0046827
commit e7563fcfb5
+9
View File
@@ -158,6 +158,15 @@ export default class Navigation extends Vue
this.selectedTime = command;
}
/**
* Get code for selected time
*/
public getSelectedTimeCode(): number
{
if (this.selectedTime == 'All Year') return -1;
else return +this.selectedTime.replace('Term ', '');
}
/**
* This function is called when the sign out button is clicked.
*/