Skip to content

Commit

Permalink
pkp/pkp-lib#9253 Add site-level announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Aug 25, 2023
1 parent 772e4a3 commit 0be4ce5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/Container/AdminPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@
import Page from '@/components/Container/Page.vue';
import ThemeForm from '@/components/Form/context/ThemeForm.vue';
import ActionPanel from '../ActionPanel/ActionPanel.vue';
import AnnouncementsListPanel from '../ListPanel/announcements/AnnouncementsListPanel.vue';
export default {
extends: Page,
name: 'AdminPage',
components: {
ActionPanel,
AnnouncementsListPanel,
ThemeForm,
},
data() {
return {
announcementsEnabled: false,
};
},
mounted() {
pkp.eventBus.$on('form-success', (formId, site) => {
if (formId === pkp.const.FORM_ANNOUNCEMENT_SETTINGS) {
this.announcementsEnabled = !!site.enableAnnouncements;
}
});
},
};
</script>

Expand Down

0 comments on commit 0be4ce5

Please sign in to comment.