This commit is contained in:
syuilo
2017-03-26 17:43:25 +09:00
parent 79577c9ebb
commit 5b5ceabbf1
4 changed files with 28 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<mk-repost-form-window>
<mk-window ref="window" is-modal={ true }>
<yield to="header">
<i class="fa fa-retweet"></i>この投稿をRepostしますか
<i class="fa fa-retweet"></i>%i18n:desktop.tags.mk-repost-form-window.title%
</yield>
<yield to="content">
<mk-repost-form ref="form" post={ parent.opts.post }></mk-repost-form>

View File

@ -2,9 +2,9 @@
<mk-post-preview post={ opts.post }></mk-post-preview>
<virtual if={ !quote }>
<footer>
<a class="quote" if={ !quote } onclick={ onquote }>引用する...</a>
<button class="cancel" onclick={ cancel }>キャンセル</button>
<button class="ok" onclick={ ok } disabled={ wait }>{ wait ? 'しています...' : 'Repost' }</button>
<a class="quote" if={ !quote } onclick={ onquote }>%i18n:desktop.tags.mk-repost-form.quote%</a>
<button class="cancel" onclick={ cancel }>%i18n:desktop.tags.mk-repost-form.cancel%</button>
<button class="ok" onclick={ ok } disabled={ wait }>{ wait ? '%i18n:desktop.tags.mk-repost-form.reposting%' : '%i18n:desktop.tags.mk-repost-form.repost%' }</button>
</footer>
</virtual>
<virtual if={ quote }>
@ -102,9 +102,9 @@
repost_id: this.opts.post.id
}).then(data => {
this.trigger('posted');
notify('Repostしました');
notify('%i18n:desktop.tags.mk-repost-form.success%');
}).catch(err => {
notify('Repostできませんでした');
notify('%i18n:desktop.tags.mk-repost-form.failure%');
}).then(() => {
this.update({
wait: false