Skip to content

Commit

Permalink
fix: to toast the app is the latest when checking the update (#190)
Browse files Browse the repository at this point in the history
to toast the app is the latest when checking the update.
 
known problem:
- the toast is only English. may It should be i18n
  • Loading branch information
CorrectRoadH authored Jul 19, 2023
1 parent b9572e5 commit d8ba588
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main/src/components/Apps/AppCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,12 @@ export default {
if (resp.status === 200) {
// messageBus :: apps_checkThenUpdate
this.$messageBus('apps_checkupdate', this.item.name.toString());
// TODO: this is need to i18n. But the resp.data.message contain app name.
// So it may is hard to do
this.$buefy.toast.open({
message: this.$t(`In the process of asynchronous updating.`),
// value is `In the process of asynchronous updating.` or `compose app `app Name` is up to date`
message: resp.data.message,
type: 'is-success'
})
Expand Down

0 comments on commit d8ba588

Please sign in to comment.