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 InvokeAsync(CreateModal!.Hide);
await Notify.Success(L["SavedSuccessfully"]);
await Notify.Success(GetCreateMessage());
}
protected virtual string GetCreateMessage()
{
return UiLocalizer["CreatedSuccessfully"];
}
protected virtual async Task UpdateEntityAsync()
@ -519,7 +524,12 @@ public abstract class AbpCrudPageBase<
await GetEntitiesAsync();
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)
@ -546,7 +556,12 @@ public abstract class AbpCrudPageBase<
{
await GetEntitiesAsync();
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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save