This commit is contained in:
syuilo 2019-05-18 23:16:09 +09:00
parent 200d593414
commit 429bed2f91
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<ui-card> <ui-card>
<template #title><fa icon="broadcast-tower"/> {{ $t('announcements') }}</template> <template #title><fa :icon="faBroadcastTower"/> {{ $t('announcements') }}</template>
<section v-for="(announcement, i) in announcements" class="fit-top"> <section v-for="(announcement, i) in announcements" class="fit-top">
<ui-input v-model="announcement.title" @change="save"> <ui-input v-model="announcement.title" @change="save">
<span>{{ $t('title') }}</span> <span>{{ $t('title') }}</span>
@ -18,7 +18,7 @@
</ui-horizon-group> </ui-horizon-group>
</section> </section>
<section> <section>
<ui-button @click="add"><fa icon="plus"/> {{ $t('add') }}</ui-button> <ui-button @click="add"><fa :icon="faPlus"/> {{ $t('add') }}</ui-button>
</section> </section>
</ui-card> </ui-card>
</div> </div>
@ -27,12 +27,14 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue from 'vue';
import i18n from '../../i18n'; import i18n from '../../i18n';
import { faBroadcastTower, faPlus } from '@fortawesome/free-solid-svg-icons';
export default Vue.extend({ export default Vue.extend({
i18n: i18n('admin/views/announcements.vue'), i18n: i18n('admin/views/announcements.vue'),
data() { data() {
return { return {
announcements: [], announcements: [],
faBroadcastTower, faPlus
}; };
}, },