1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-05 00:27:25 +00:00
mailinabox/management/ui-common/page-header.js
2021-04-10 09:29:29 -04:00

22 lines
574 B
JavaScript

var spinner = Vue.component('spinner', {
template: '<span class="spinner-border spinner-border-sm"></span>'
});
var header = Vue.component('page-header', function(resolve, reject) {
axios.get('ui-common/page-header.html').then((response) => { resolve({
props: {
header_text: { type: String, required: true },
loading_counter: { type: Number, required: true }
},
template: response.data
})}).catch((e) => {
reject(e);
});
});
export { spinner, header as default };