debian-mirror-gitlab/app/assets/javascripts/admin/broadcast_messages/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
538 B
JavaScript
Raw Normal View History

2022-11-25 23:54:43 +05:30
import Vue from 'vue';
import BroadcastMessagesBase from './components/base.vue';
export default () => {
const el = document.querySelector('#js-broadcast-messages');
const { page, messagesCount, messages } = el.dataset;
return new Vue({
el,
name: 'BroadcastMessages',
render(createElement) {
return createElement(BroadcastMessagesBase, {
props: {
page: Number(page),
messagesCount: Number(messagesCount),
messages: JSON.parse(messages),
},
});
},
});
};