fix showSeconds flag logic

This commit is contained in:
Sergio Crisostomo 2018-01-24 13:34:02 +01:00
parent 46726afdf4
commit 22ff9a62f2
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@
];
},
showSeconds () {
return (this.format || '').indexOf('ss') !== -1;
return !(this.format || '').match(/mm$/);
},
leftDatePanelLabel () {
return this.panelLabelConfig(this.date);

View file

@ -69,7 +69,7 @@
},
computed: {
showSeconds () {
return (this.format || '').indexOf('ss') !== -1;
return !(this.format || '').match(/mm$/);
},
visibleDate () { // TODO
const date = this.date;