Fix bug
This commit is contained in:
parent
51ed3a6fad
commit
08ce6b895c
48 changed files with 279 additions and 140 deletions
|
|
@ -5,7 +5,7 @@
|
|||
<footer>
|
||||
<a class="quote" v-if="!quote" @click="onQuote">%i18n:@quote%</a>
|
||||
<button class="cancel" @click="cancel">%i18n:@cancel%</button>
|
||||
<button class="ok" @click="ok" :disabled="wait">{{ wait ? '%i18n:@reposting%' : '%i18n:@renote%' }}</button>
|
||||
<button class="ok" @click="ok" :disabled="wait">{{ wait ? '%i18n:!@reposting%' : '%i18n:!@renote%' }}</button>
|
||||
</footer>
|
||||
</template>
|
||||
<template v-if="quote">
|
||||
|
|
@ -32,9 +32,9 @@ export default Vue.extend({
|
|||
renoteId: this.note.id
|
||||
}).then(data => {
|
||||
this.$emit('posted');
|
||||
(this as any).apis.notify('%i18n:@success%');
|
||||
(this as any).apis.notify('%i18n:!@success%');
|
||||
}).catch(err => {
|
||||
(this as any).apis.notify('%i18n:@failure%');
|
||||
(this as any).apis.notify('%i18n:!@failure%');
|
||||
}).then(() => {
|
||||
this.wait = false;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue