Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webhook forward: update labels & add success message on save #318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading