fix specs, fix merge conflicts and cleanup

This commit is contained in:
Sergio Crisostomo 2018-01-22 14:23:05 +01:00
parent d9ff845f63
commit 5426dcf989
8 changed files with 36 additions and 17 deletions

View file

@ -82,7 +82,7 @@
start: isRange && time === minDay,
end: isRange && time === maxDay
};
}).cells.slice(8);
}).cells;
}
},
methods: {

View file

@ -1,4 +1,6 @@
import {clearHours} from '../util';
export default {
props: {
tableDate: {
@ -36,7 +38,7 @@ export default {
methods: {
handleClick (cell) {
if (cell.disabled) return;
const newDate = cell.date;
const newDate = new Date(clearHours(cell.date));
this.$emit('on-pick', newDate);
this.$emit('on-pick-click');