Browse Source

Merge pull request #20114 from abpframework/AbpCrudPageBase

Add `CreatedSuccessfully` message.
pull/20125/head
liangshiwei 2 years ago
committed by GitHub
parent
commit
eacbbee041
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 21
      framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
  2. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json
  3. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json
  4. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json
  5. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json
  6. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json
  7. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json
  8. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json
  9. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json
  10. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json
  11. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json
  12. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json
  13. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json
  14. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json
  15. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json
  16. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json
  17. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json
  18. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json
  19. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json
  20. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json
  21. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json
  22. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json
  23. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json
  24. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json
  25. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json
  26. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json
  27. 1
      framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json

21
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs

@ -480,7 +480,12 @@ public abstract class AbpCrudPageBase<
await GetEntitiesAsync(); await GetEntitiesAsync();
await InvokeAsync(CreateModal!.Hide); await InvokeAsync(CreateModal!.Hide);
await Notify.Success(L["SavedSuccessfully"]); await Notify.Success(GetCreateMessage());
}
protected virtual string GetCreateMessage()
{
return UiLocalizer["CreatedSuccessfully"];
} }
protected virtual async Task UpdateEntityAsync() protected virtual async Task UpdateEntityAsync()
@ -519,7 +524,12 @@ public abstract class AbpCrudPageBase<
await GetEntitiesAsync(); await GetEntitiesAsync();
await InvokeAsync(EditModal!.Hide); await InvokeAsync(EditModal!.Hide);
await Notify.Success(L["SavedSuccessfully"]); await Notify.Success(GetUpdateMessage());
}
protected virtual string GetUpdateMessage()
{
return UiLocalizer["SavedSuccessfully"];
} }
protected virtual async Task DeleteEntityAsync(TListViewModel entity) protected virtual async Task DeleteEntityAsync(TListViewModel entity)
@ -546,7 +556,12 @@ public abstract class AbpCrudPageBase<
{ {
await GetEntitiesAsync(); await GetEntitiesAsync();
await InvokeAsync(StateHasChanged); await InvokeAsync(StateHasChanged);
await Notify.Success(L["DeletedSuccessfully"]); await Notify.Success(GetDeleteMessage());
}
protected virtual string GetDeleteMessage()
{
return UiLocalizer["DeletedSuccessfully"];
} }
protected virtual string GetDeleteConfirmationMessage(TListViewModel entity) protected virtual string GetDeleteConfirmationMessage(TListViewModel entity)

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ar.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "حفظ...", "SavingWithThreeDot": "حفظ...",
"Actions": "الإجراءات", "Actions": "الإجراءات",
"Delete": "حذف", "Delete": "حذف",
"CreatedSuccessfully": "تم الإنشاء بنجاح",
"SavedSuccessfully": "تم الحفظ بنجاح", "SavedSuccessfully": "تم الحفظ بنجاح",
"DeletedSuccessfully": "تم الحذف بنجاح", "DeletedSuccessfully": "تم الحذف بنجاح",
"Edit": "تعديل", "Edit": "تعديل",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/cs.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Ukládám...", "SavingWithThreeDot": "Ukládám...",
"Actions": "Akce", "Actions": "Akce",
"Delete": "Smazat", "Delete": "Smazat",
"CreatedSuccessfully": "Úspěšně vytvořeno",
"SavedSuccessfully": "Úspěšně uloženo", "SavedSuccessfully": "Úspěšně uloženo",
"DeletedSuccessfully": "Úspěšně smazáno", "DeletedSuccessfully": "Úspěšně smazáno",
"Edit": "Upravit", "Edit": "Upravit",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/de.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Speichern...", "SavingWithThreeDot": "Speichern...",
"Actions": "Aktionen", "Actions": "Aktionen",
"Delete": "Löschen", "Delete": "Löschen",
"CreatedSuccessfully": "Erfolgreich erstellt",
"SavedSuccessfully": "Erfolgreich gespeichert", "SavedSuccessfully": "Erfolgreich gespeichert",
"DeletedSuccessfully": "Erfolgreich gelöscht", "DeletedSuccessfully": "Erfolgreich gelöscht",
"Edit": "Bearbeiten", "Edit": "Bearbeiten",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/el.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Αποθηκεύεται...", "SavingWithThreeDot": "Αποθηκεύεται...",
"Actions": "Ενέργειες", "Actions": "Ενέργειες",
"Delete": "Διαγραφή", "Delete": "Διαγραφή",
"CreatedSuccessfully": "Δημιουργήθηκε με επιτυχία",
"SavedSuccessfully": "Αποθηκεύτηκε με επιτυχία", "SavedSuccessfully": "Αποθηκεύτηκε με επιτυχία",
"DeletedSuccessfully": "Διαγράφηκε με επιτυχία", "DeletedSuccessfully": "Διαγράφηκε με επιτυχία",
"Edit": "Επεξεργασία", "Edit": "Επεξεργασία",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en-GB.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Saving", "SavingWithThreeDot": "Saving",
"Actions": "Actions", "Actions": "Actions",
"Delete": "Delete", "Delete": "Delete",
"CreatedSuccessfully": "Created successfully",
"SavedSuccessfully": "Saved successfully", "SavedSuccessfully": "Saved successfully",
"DeletedSuccessfully": "Deleted successfully", "DeletedSuccessfully": "Deleted successfully",
"Edit": "Edit", "Edit": "Edit",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Saving...", "SavingWithThreeDot": "Saving...",
"Actions": "Actions", "Actions": "Actions",
"Delete": "Delete", "Delete": "Delete",
"CreatedSuccessfully": "Created successfully",
"SavedSuccessfully": "Saved successfully", "SavedSuccessfully": "Saved successfully",
"DeletedSuccessfully": "Deleted successfully", "DeletedSuccessfully": "Deleted successfully",
"Edit": "Edit", "Edit": "Edit",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/es.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Guardando...", "SavingWithThreeDot": "Guardando...",
"Actions": "Opciones", "Actions": "Opciones",
"Delete": "Borrar", "Delete": "Borrar",
"CreatedSuccessfully": "Creado con éxito",
"SavedSuccessfully": "Guardado con éxito", "SavedSuccessfully": "Guardado con éxito",
"DeletedSuccessfully": "Eliminado con éxito", "DeletedSuccessfully": "Eliminado con éxito",
"Edit": "Editar", "Edit": "Editar",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fa.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "ذخیره...", "SavingWithThreeDot": "ذخیره...",
"Actions": "عملیات", "Actions": "عملیات",
"Delete": "حذف", "Delete": "حذف",
"CreatedSuccessfully": "با موفقیت ایجاد شد",
"SavedSuccessfully": "با موفقیت ذخیره شد", "SavedSuccessfully": "با موفقیت ذخیره شد",
"DeletedSuccessfully": "با موفقیت حذف شد", "DeletedSuccessfully": "با موفقیت حذف شد",
"Edit": "ویرایش", "Edit": "ویرایش",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fi.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Tallennetaan...", "SavingWithThreeDot": "Tallennetaan...",
"Actions": "Toiminnot", "Actions": "Toiminnot",
"Delete": "Poista", "Delete": "Poista",
"CreatedSuccessfully": "Luotu onnistuneesti",
"SavedSuccessfully": "Tallennettu onnistuneesti", "SavedSuccessfully": "Tallennettu onnistuneesti",
"DeletedSuccessfully": "Poistettu onnistuneesti", "DeletedSuccessfully": "Poistettu onnistuneesti",
"Edit": "Muokkaa", "Edit": "Muokkaa",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/fr.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Enregistrement...", "SavingWithThreeDot": "Enregistrement...",
"Actions": "Actions", "Actions": "Actions",
"Delete": "Supprimer", "Delete": "Supprimer",
"CreatedSuccessfully": "Créé avec succès",
"SavedSuccessfully": "Enregistré avec succès", "SavedSuccessfully": "Enregistré avec succès",
"DeletedSuccessfully": "Supprimé avec succès", "DeletedSuccessfully": "Supprimé avec succès",
"Edit": "Modifier", "Edit": "Modifier",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hi.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "सहेजा जा रहा है...", "SavingWithThreeDot": "सहेजा जा रहा है...",
"Actions": "कार्रवाई", "Actions": "कार्रवाई",
"Delete": "हटाएं", "Delete": "हटाएं",
"CreatedSuccessfully": "सफलतापूर्वक बनाया गया",
"SavedSuccessfully": "सफलतापूर्वक सहेजा गया", "SavedSuccessfully": "सफलतापूर्वक सहेजा गया",
"DeletedSuccessfully": "सफलतापूर्वक हटा दिया गया", "DeletedSuccessfully": "सफलतापूर्वक हटा दिया गया",
"Edit": "संपादित करें", "Edit": "संपादित करें",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hr.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Spremanje...", "SavingWithThreeDot": "Spremanje...",
"Actions": "Akcije", "Actions": "Akcije",
"Delete": "Izbrisati", "Delete": "Izbrisati",
"CreatedSuccessfully": "Uspješno kreirano",
"SavedSuccessfully": "Uspešno zabeleženo", "SavedSuccessfully": "Uspešno zabeleženo",
"DeletedSuccessfully": "Uspješno izbrisano", "DeletedSuccessfully": "Uspješno izbrisano",
"Edit": "Uredi", "Edit": "Uredi",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/hu.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Mentés...", "SavingWithThreeDot": "Mentés...",
"Actions": "Műveletek", "Actions": "Műveletek",
"Delete": "Törlés", "Delete": "Törlés",
"CreatedSuccessfully": "Sikeresen létrehozva",
"SavedSuccessfully": "Sikeresen mentve", "SavedSuccessfully": "Sikeresen mentve",
"DeletedSuccessfully": "Sikeresen törölve", "DeletedSuccessfully": "Sikeresen törölve",
"Edit": "Szerkesztés", "Edit": "Szerkesztés",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/is.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Er að vista...", "SavingWithThreeDot": "Er að vista...",
"Actions": "Aðgerðir", "Actions": "Aðgerðir",
"Delete": "Eyða", "Delete": "Eyða",
"CreatedSuccessfully": "Tókst að búa til",
"SavedSuccessfully": "Tókst að vista", "SavedSuccessfully": "Tókst að vista",
"DeletedSuccessfully": "Tókst að eyða", "DeletedSuccessfully": "Tókst að eyða",
"Edit": "Breyta", "Edit": "Breyta",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/it.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Salvataggio...", "SavingWithThreeDot": "Salvataggio...",
"Actions": "Azioni", "Actions": "Azioni",
"Delete": "Elimina", "Delete": "Elimina",
"CreatedSuccessfully": "Creato con successo",
"SavedSuccessfully": "Salvato con successo", "SavedSuccessfully": "Salvato con successo",
"DeletedSuccessfully": "Eliminato con successo", "DeletedSuccessfully": "Eliminato con successo",
"Edit": "Modifica", "Edit": "Modifica",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/nl.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Opslaan...", "SavingWithThreeDot": "Opslaan...",
"Actions": "Acties", "Actions": "Acties",
"Delete": "Verwijder", "Delete": "Verwijder",
"CreatedSuccessfully": "Succesvol aangemaakt",
"SavedSuccessfully": "Succesvol opgeslagen", "SavedSuccessfully": "Succesvol opgeslagen",
"DeletedSuccessfully": "Succesvol verwijderd", "DeletedSuccessfully": "Succesvol verwijderd",
"Edit": "Bewerk", "Edit": "Bewerk",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pl-PL.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Zapisywanie...", "SavingWithThreeDot": "Zapisywanie...",
"Actions": "Akcje", "Actions": "Akcje",
"Delete": "Usuń", "Delete": "Usuń",
"CreatedSuccessfully": "Pomyślnie utworzono",
"SavedSuccessfully": "Pomyślnie zapisano", "SavedSuccessfully": "Pomyślnie zapisano",
"DeletedSuccessfully": "Pomyślnie usunięto", "DeletedSuccessfully": "Pomyślnie usunięto",
"Edit": "Edytuj", "Edit": "Edytuj",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/pt-BR.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Salvando...", "SavingWithThreeDot": "Salvando...",
"Actions": "Ações", "Actions": "Ações",
"Delete": "Excluir", "Delete": "Excluir",
"CreatedSuccessfully": "Criado com sucesso",
"SavedSuccessfully": "Salvo com sucesso", "SavedSuccessfully": "Salvo com sucesso",
"DeletedSuccessfully": "Excluído com sucesso", "DeletedSuccessfully": "Excluído com sucesso",
"Edit": "Editar", "Edit": "Editar",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ro-RO.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Se salvează...", "SavingWithThreeDot": "Se salvează...",
"Actions": "Acţiuni", "Actions": "Acţiuni",
"Delete": "Şterge", "Delete": "Şterge",
"CreatedSuccessfully": "Creat cu succes",
"SavedSuccessfully": "Salvat cu succes", "SavedSuccessfully": "Salvat cu succes",
"DeletedSuccessfully": "Șters cu succes", "DeletedSuccessfully": "Șters cu succes",
"Edit": "Editează", "Edit": "Editează",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/ru.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Сохранение...", "SavingWithThreeDot": "Сохранение...",
"Actions": "Действия", "Actions": "Действия",
"Delete": "Удалить", "Delete": "Удалить",
"CreatedSuccessfully": "Успешно создано",
"SavedSuccessfully": "Успешно сохранено", "SavedSuccessfully": "Успешно сохранено",
"DeletedSuccessfully": "Успешно удалено", "DeletedSuccessfully": "Успешно удалено",
"Edit": "Редактировать", "Edit": "Редактировать",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sk.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Úkladanie...", "SavingWithThreeDot": "Úkladanie...",
"Actions": "Akcie", "Actions": "Akcie",
"Delete": "Odstrániť", "Delete": "Odstrániť",
"CreatedSuccessfully": "Úspešne vytvorené",
"SavedSuccessfully": "Úspešne uložené", "SavedSuccessfully": "Úspešne uložené",
"DeletedSuccessfully": "Úspešne odstránené", "DeletedSuccessfully": "Úspešne odstránené",
"Edit": "Upraviť", "Edit": "Upraviť",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/sl.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Shranjujem...", "SavingWithThreeDot": "Shranjujem...",
"Actions": "Dejanja", "Actions": "Dejanja",
"Delete": "Izbriši", "Delete": "Izbriši",
"CreatedSuccessfully": "Uspešno ustvarjeno",
"SavedSuccessfully": "Uspešno shranjeno", "SavedSuccessfully": "Uspešno shranjeno",
"DeletedSuccessfully": "Uspešno izbrisano", "DeletedSuccessfully": "Uspešno izbrisano",
"Edit": "Uredi", "Edit": "Uredi",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/tr.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Kaydediliyor...", "SavingWithThreeDot": "Kaydediliyor...",
"Actions": "İşlemler", "Actions": "İşlemler",
"Delete": "Sil", "Delete": "Sil",
"CreatedSuccessfully": "Başarıyla oluşturuldu",
"SavedSuccessfully": "Başarıyla kaydedildi", "SavedSuccessfully": "Başarıyla kaydedildi",
"DeletedSuccessfully": "Başarıyla silindi", "DeletedSuccessfully": "Başarıyla silindi",
"Edit": "Düzenle", "Edit": "Düzenle",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/vi.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "Đang lưu...", "SavingWithThreeDot": "Đang lưu...",
"Actions": "Hành động", "Actions": "Hành động",
"Delete": "Xóa", "Delete": "Xóa",
"CreatedSuccessfully": "Đã tạo thành công",
"SavedSuccessfully": "Đã lưu thành công", "SavedSuccessfully": "Đã lưu thành công",
"DeletedSuccessfully": "Đã xóa thành công", "DeletedSuccessfully": "Đã xóa thành công",
"Edit": "Sửa", "Edit": "Sửa",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hans.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "保存中...", "SavingWithThreeDot": "保存中...",
"Actions": "操作", "Actions": "操作",
"Delete": "删除", "Delete": "删除",
"CreatedSuccessfully": "创建成功",
"SavedSuccessfully": "保存成功", "SavedSuccessfully": "保存成功",
"DeletedSuccessfully": "删除成功", "DeletedSuccessfully": "删除成功",
"Edit": "编辑", "Edit": "编辑",

1
framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/zh-Hant.json

@ -13,6 +13,7 @@
"SavingWithThreeDot": "保存中...", "SavingWithThreeDot": "保存中...",
"Actions": "操作", "Actions": "操作",
"Delete": "刪除", "Delete": "刪除",
"CreatedSuccessfully": "創建成功",
"SavedSuccessfully": "保存成功", "SavedSuccessfully": "保存成功",
"DeletedSuccessfully": "刪除成功", "DeletedSuccessfully": "刪除成功",
"Edit": "修改", "Edit": "修改",

Loading…
Cancel
Save