Skip to content

Commit

Permalink
webhook forward: update labels & add success message on save
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Jul 18, 2024
1 parent dc3533d commit 9a111c2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,17 @@ export default {
this.notificationTargetRepository.save(this.notificationTarget, Shopware.Context.api).then(() => {
this.isLoading = false;
this.isSaveSuccessful = true;
this.createNotificationSuccess({
message: this.$tc(
'payonePayment.notificationTarget.messages.successfullySaved'
),
});

if (this.notificationTargetId === null) {
this.$router.push({ name: 'payone.notification.target.detail', params: { id: this.notificationTarget.id } });
this.$router.push({
name: 'payone.notification.target.detail',
params: {id: this.notificationTarget.id}
});
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"payonePayment": {
"notificationTarget": {
"module": {
"title": "Payone Notificationweiterleitungen",
"buttonTitle": "Notifications"
"title": "PAYONE Webhook-Weiterleitungen",
"buttonTitle": "Webhook Weiterleitungen"
},
"list": {
"title": "Notificationweiterleitungen",
"title": "Webhook Weiterleitungen",
"empty": "Keine Einträge",
"buttonCreate": "Weiterleitungsziel anlegen"
},
"detail": {
"headline": "Notificationweiterleitung",
"headline": "Webhook-Weiterleitung",
"placeholder": {
"url": "Url",
"username": "Benutzer",
Expand All @@ -36,7 +36,8 @@
"requeue": "Erneut senden"
},
"messages": {
"success": "Die Weiterleitung wurde erfolgreich in Auftrag gegeben."
"success": "Die Weiterleitung wurde erfolgreich in Auftrag gegeben.",
"successfullySaved": "Das Weiterleitungsziel wurde erfolgreich gespeichert."
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"payonePayment": {
"notificationTarget": {
"module": {
"title": "Payone notification forward",
"buttonTitle": "Notifications"
"title": "PAYONE webhook forward",
"buttonTitle": "Webhook forwards"
},
"list": {
"title": "Notification forward",
"title": "Webhook forward",
"empty": "No entries",
"buttonCreate": "Add new notification target"
"buttonCreate": "Add new forward target"
},
"detail": {
"headline": "Notification forward",
"headline": "Webhook forward",
"placeholder": {
"url": "Url",
"username": "Username",
Expand All @@ -36,7 +36,8 @@
"requeue": "Requeue"
},
"messages": {
"success": "The notification forward has been successfully queued."
"success": "The notification forward has been successfully queued.",
"successfullySaved": "The forwarding target has been saved successfully."
}
}
}
Expand Down
Loading

0 comments on commit 9a111c2

Please sign in to comment.