Added track update toasts
This commit is contained in:
parent
2856c5c1b7
commit
103ad57ddc
@ -179,6 +179,7 @@
|
|||||||
<button
|
<button
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
|
toast.loading($_("track-is-being-updated"));
|
||||||
const i = editTracks.findIndex(
|
const i = editTracks.findIndex(
|
||||||
(tr) => tr.id === t.id
|
(tr) => tr.id === t.id
|
||||||
);
|
);
|
||||||
@ -193,6 +194,8 @@
|
|||||||
editTracks = editTracks.filter((tr) => {
|
editTracks = editTracks.filter((tr) => {
|
||||||
tr.id !== t.id;
|
tr.id !== t.id;
|
||||||
});
|
});
|
||||||
|
toast.dismiss();
|
||||||
|
toast.success($_("track-updated"));
|
||||||
}}
|
}}
|
||||||
class="ml-4 text-green-600 hover:text-green-900 cursor-pointer"
|
class="ml-4 text-green-600 hover:text-green-900 cursor-pointer"
|
||||||
>{$_("save")}</button
|
>{$_("save")}</button
|
||||||
|
@ -503,5 +503,7 @@
|
|||||||
"you-have-to-provide-an-organization": "Du musst eine Organisation angeben",
|
"you-have-to-provide-an-organization": "Du musst eine Organisation angeben",
|
||||||
"you-have-to-save-your-changes-to-generate-a-link": "Du musst deine Änderungen speichern, um einen Link zu generieren.",
|
"you-have-to-save-your-changes-to-generate-a-link": "Du musst deine Änderungen speichern, um einen Link zu generieren.",
|
||||||
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen.",
|
"you-must-create-at-least-one-card-or-cancel": "Du musst mindestens eine Blankokarte erstellen.",
|
||||||
"zip-postal-code": "Postleitzahl"
|
"zip-postal-code": "Postleitzahl",
|
||||||
|
"track-is-being-deleted": "Track wird gelöscht",
|
||||||
|
"track-updated": "Track aktualisiert"
|
||||||
}
|
}
|
@ -503,5 +503,7 @@
|
|||||||
"you-have-to-provide-an-organization": "You have to provide an organization",
|
"you-have-to-provide-an-organization": "You have to provide an organization",
|
||||||
"you-have-to-save-your-changes-to-generate-a-link": "You have to save your changes to generate a link.",
|
"you-have-to-save-your-changes-to-generate-a-link": "You have to save your changes to generate a link.",
|
||||||
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card.",
|
"you-must-create-at-least-one-card-or-cancel": "You must create at least one card.",
|
||||||
"zip-postal-code": "ZIP/ postal code"
|
"zip-postal-code": "ZIP/ postal code",
|
||||||
|
"track-is-being-deleted": "Track is being deleted",
|
||||||
|
"track-updated": "Track deleted"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user