This commit is contained in:
syuilo 2018-02-21 02:53:34 +09:00
parent b2a6257f93
commit a1e57841e7
22 changed files with 304 additions and 372 deletions

View file

@ -16,7 +16,6 @@
<script lang="ts">
import Vue from 'vue';
import notify from '../../scripts/notify';
export default Vue.extend({
props: ['post'],
@ -33,9 +32,9 @@ export default Vue.extend({
repost_id: this.post.id
}).then(data => {
this.$emit('posted');
notify('%i18n:desktop.tags.mk-repost-form.success%');
(this as any).apis.notify('%i18n:desktop.tags.mk-repost-form.success%');
}).catch(err => {
notify('%i18n:desktop.tags.mk-repost-form.failure%');
(this as any).apis.notify('%i18n:desktop.tags.mk-repost-form.failure%');
}).then(() => {
this.wait = false;
});