add global filter
This commit is contained in:
parent
3f2f09597f
commit
cc0d1ba51b
7
ffplayout/frontend/plugins/filters.js
Normal file
7
ffplayout/frontend/plugins/filters.js
Normal file
@ -0,0 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
Vue.filter('toMin', function (sec) {
|
||||
const minutes = Math.floor(sec / 60)
|
||||
const seconds = Math.round(sec - minutes * 60)
|
||||
return `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')} min`
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user