displayed attachments, added attachments filter to material admin view
This commit is contained in:
24
web/themes/custom/materiotheme/vuejs/plugins/prettyBytes.js
Normal file
24
web/themes/custom/materiotheme/vuejs/plugins/prettyBytes.js
Normal file
@ -0,0 +1,24 @@
|
||||
// plugins/prettyBytes.js
|
||||
export default {
|
||||
install: (app, options) => {
|
||||
app.config.globalProperties.$prettyBytes = (value) => {
|
||||
return value + 'Mb'
|
||||
}
|
||||
|
||||
app.provide('prettyBytes', options)
|
||||
|
||||
// app.directive('my-directive', {
|
||||
// mounted (el, binding, vnode, oldVnode) {
|
||||
// // some logic ...
|
||||
// }
|
||||
// ...
|
||||
// })
|
||||
|
||||
// app.mixin({
|
||||
// created() {
|
||||
// // some logic ...
|
||||
// }
|
||||
// ...
|
||||
// })
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user