Skip to content

Commit 4c3711a

Browse files
committed
Standardise nothing here view additional pt1
1 parent 1e348bd commit 4c3711a

File tree

16 files changed

+35
-17
lines changed

16 files changed

+35
-17
lines changed

client/packages/common/src/intl/locales/ar/common.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
"error.no-properties-to-import": "لا توجد خصائص مهيأة لاستيرادها لمؤسستك",
309309
"error.no-report-permission": "لا يوجد إذن لعرض التقارير",
310310
"error.no-reports-available": "لا توجد تقارير متاحة",
311-
"error.no-requisition-items": "لم تتم إضافة أي عناصر إلى هذا الطلب الداخلي.",
311+
"error.no-internal-order-items": "لم تتم إضافة أي عناصر إلى هذا الطلب الداخلي.",
312312
"error.no-requisitions": "لا توجد طلبات للعرض.",
313313
"error.no-results": "لا يوجد شيء هنا",
314314
"error.no-rnr-forms": "لم يتم العثور على نماذج التقارير والطلبات",

client/packages/common/src/intl/locales/en/common.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@
294294
"error.no-asset-create-permission": "You do not have permission to create a new asset.",
295295
"error.no-asset-edit-permission": "You do not have permission to edit assets.",
296296
"error.no-asset-view-permission": "You do not have permission to view assets.",
297+
"error.no-assets": "There are no assets to display.",
298+
"error.no-asset-log-reasons": "There are no asset log reasons to display.",
297299
"error.no-create-outbound-shipment-permission": "You do not have permission to create an Outbound Shipment from a Requisition",
298300
"error.no-customer-return-items": "No items have been added to this return.",
299301
"error.no-customer-returns": "There are no Customer Returns to display.",
@@ -314,13 +316,15 @@
314316
"error.no-outbound-items": "No items have been added to this shipment.",
315317
"error.no-outbound-shipments": "There are no Outbound Shipments to display.",
316318
"error.no-pack-variants": "This item does not have any pack variants configured.",
319+
"error.no-patients": "There are no patients to display.",
317320
"error.no-permission": "No permission to view this data",
318321
"error.no-permission-report": "You do not have permission to view this report",
319322
"error.no-prescriptions": "There are no Prescriptions to display.",
320323
"error.no-properties-to-import": "There are no configured properties to import for your facilities",
321324
"error.no-report-permission": "No permission to view reports",
322325
"error.no-reports-available": "No reports available",
323-
"error.no-requisition-items": "No items have been added to this Internal Order.",
326+
"error.no-internal-order-items": "No items have been added to this Internal Order.",
327+
"error.no-requisition-items": "No items have been added to this requisition.",
324328
"error.no-requisitions": "There are no Requisitions to display.",
325329
"error.no-results": "Nothing here",
326330
"error.no-rnr-forms": "No R&R Forms found",
@@ -330,6 +334,7 @@
330334
"error.no-stock": "There is no stock to display.",
331335
"error.no-stocktake-items": "No items have been added to this stocktake.",
332336
"error.no-stocktakes": "There are no Stocktakes to display.",
337+
"error.no-supplier-return-items": "No items have been added to this return.",
333338
"error.no-supplier-returns": "There are no Supplier Returns to display.",
334339
"error.no-temperature-breaches": "No temperature breaches found",
335340
"error.no-temperature-logs": "No temperature logs found",

client/packages/common/src/intl/locales/es/common.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
"error.no-properties-to-import": "No hay propiedades configuradas para importar a tu almacén",
309309
"error.no-report-permission": "No tienes permiso para ver informes",
310310
"error.no-reports-available": "No hay reportes disponibles",
311-
"error.no-requisition-items": "No se han agregado elementos a esta Orden Interna.",
311+
"error.no-internal-order-items": "No se han agregado elementos a esta Orden Interna.",
312312
"error.no-requisitions": "No hay requisiciones para mostrar.",
313313
"error.no-results": "Nada aquí",
314314
"error.no-rnr-forms": "No se encontraron formularios R&R",

client/packages/common/src/intl/locales/fr-DJ/common.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"customer-return": "Retour du client",
163163
"customer-returns": "Retours du client",
164164
"label.inbound-shipment": "Bon de livraison",
165-
"error.no-requisition-items": "Aucun article n'a été ajouté à ce Bon de Commande.",
165+
"error.no-internal-order-items": "Aucun article n'a été ajouté à ce Bon de Commande.",
166166
"filename.requests": "bons-de-commande",
167167
"inbound-shipment": "Bons de livraison",
168168
"internal-order": "Bons de commande",

client/packages/common/src/intl/locales/fr/common.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
"error.no-properties-to-import": "Il n'y a pas de propriétés d'import configurées pour vos sites",
316316
"error.no-report-permission": "Aucune autorisation pour afficher les rapports",
317317
"error.no-reports-available": "Aucun rapport disponible",
318-
"error.no-requisition-items": "Aucun article n'a été ajouté à cette commande interne.",
318+
"error.no-internal-order-items": "Aucun article n'a été ajouté à cette commande interne.",
319319
"error.no-requisitions": "Il n'y aucune réquisition client à afficher.",
320320
"error.no-results": "Aucune donnée trouvée",
321321
"error.no-rnr-forms": "Aucun Formulaire R&R trouvé",

client/packages/common/src/intl/locales/pt/common.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@
319319
"error.no-properties-to-import": "Não há propriedades configuradas para importar para o seu local",
320320
"error.no-report-permission": "Você não tem permissão para ver esses relatórios",
321321
"error.no-reports-available": "Nenhum relatório disponível",
322-
"error.no-requisition-items": "Nenhum item foi adicionado à Requisição Interna.",
322+
"error.no-internal-order-items": "Nenhum item foi adicionado à Requisição Interna.",
323323
"error.no-requisitions": "Nenhuma Requisição para mostrar.",
324324
"error.no-results": "Nada aqui",
325325
"error.no-rnr-forms": "Não foram encontrados formulários R&R",
@@ -1884,4 +1884,4 @@
18841884
"warning.caps-lock": "Advertência: Caps Lock está ativada",
18851885
"warning.field-not-parsed": "{{field}} não analisado",
18861886
"warning.nothing-to-supply": "Nada para fornecer!"
1887-
}
1887+
}

client/packages/common/src/intl/locales/ru/common.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@
319319
"error.no-properties-to-import": "Для ваших объектов нет настроенных свойств для импорта",
320320
"error.no-report-permission": "Нет разрешения на просмотр отчетов",
321321
"error.no-reports-available": "Отчеты отсутствуют",
322-
"error.no-requisition-items": "К этому внутреннему заказу не добавлено ни одного товара.",
322+
"error.no-internal-order-items": "К этому внутреннему заказу не добавлено ни одного товара.",
323323
"error.no-requisitions": "Нет запросов на закупку для отображения.",
324324
"error.no-results": "Здесь ничего нет",
325325
"error.no-rnr-forms": "О&З формы не найдены",
@@ -1859,4 +1859,4 @@
18591859
"warning.caps-lock": "Внимание: включен Caps Lock",
18601860
"warning.field-not-parsed": "{{field}} не проанализировано",
18611861
"warning.nothing-to-supply": "Больше нечего поставить!"
1862-
}
1862+
}

client/packages/common/src/intl/locales/tet/common.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"error.no-outbound-shipments": "La iha remessa sasan sai atu hatudu.",
114114
"error.no-report-permission": "Laiha permisaun atu hare relatoriu sira",
115115
"error.no-reports-available": "Relatoriu sira la disponivel",
116-
"error.no-requisition-items": "La iha items ne'ebe aumenta ba iha pedidu internal ne'e.",
116+
"error.no-internal-order-items": "La iha items ne'ebe aumenta ba iha pedidu internal ne'e.",
117117
"error.no-requisitions": "Laiha requizisaun atu hatudu.",
118118
"error.no-results": "Laiha buat ida atu hatudu",
119119
"error.no-stock": "Laiha Stock atu hatudu.",

client/packages/invoices/src/Returns/SupplierDetailView/ContentArea.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const ContentAreaComponent: FC<ContentAreaProps> = ({
6161
enableColumnSelection
6262
noDataElement={
6363
<NothingHere
64-
body={t('error.no-outbound-items')}
64+
body={t('error.no-supplier-return-items')}
6565
onCreate={isDisabled ? undefined : () => onAddItem()}
6666
buttonText={t('button.add-item')}
6767
/>

client/packages/requisitions/src/RequestRequisition/DetailView/ContentArea.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const ContentArea = ({ onAddItem, onRowClick }: ContentAreaProps) => {
5858
body={t(
5959
isFiltered
6060
? 'error.no-items-filter-on'
61-
: 'error.no-requisition-items'
61+
: 'error.no-internal-order-items'
6262
)}
6363
onCreate={isDisabled ? undefined : onAddItem}
6464
buttonText={t('button.add-item')}

client/packages/requisitions/src/ResponseRequisition/DetailView/ContentArea.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const ContentArea = ({
2828
data={lines}
2929
noDataElement={
3030
<NothingHere
31+
body={t('error.no-requisition-items')}
3132
buttonText={t('button.add-item')}
3233
onCreate={disableAddLine ? undefined : onAddItem}
3334
/>

client/packages/requisitions/src/ResponseRequisition/ListView/ListView.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ export const ResponseRequisitionListView: FC = () => {
159159
}}
160160
isError={isError}
161161
isLoading={isLoading}
162-
noDataElement={<NothingHere body={t('error.no-requisitions')} />}
162+
noDataElement={
163+
<NothingHere
164+
body={t('error.no-requisitions')}
165+
onCreate={modalController.toggleOn}
166+
/>
167+
}
163168
/>
164169

165170
<Footer />

client/packages/system/src/Asset/AssetLogReasons/ListView.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ const AssetListComponent: FC = () => {
7878
data={data?.nodes}
7979
isError={isError}
8080
isLoading={isLoading}
81-
noDataElement={<NothingHere body={t('error.no-items')} />}
81+
noDataElement={
82+
<NothingHere
83+
body={t('error.no-asset-log-reasons')}
84+
onCreate={() => onOpen()}
85+
/>
86+
}
8287
/>
8388
<Footer data={data?.nodes ?? []} />
8489
</>

client/packages/system/src/Asset/ListView/ListView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const AssetListComponent: FC = () => {
108108
data={data?.nodes}
109109
isError={isError}
110110
isLoading={isLoading}
111-
noDataElement={<NothingHere body={t('error.no-items')} />}
111+
noDataElement={<NothingHere body={t('error.no-assets')} />}
112112
enableColumnSelection
113113
/>
114114
<Footer />

client/packages/system/src/Item/ListView/ListView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const ItemListComponent: FC = () => {
9999
onRowClick={row => {
100100
navigate(`/catalogue/items/${row.id}`);
101101
}}
102-
noDataElement={<NothingHere body={t('error.no-items')} />}
102+
noDataElement={<NothingHere body={t('error.no-items-to-display')} />}
103103
/>
104104
</>
105105
);

client/packages/system/src/Patient/ListView/ListView.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
useNavigate,
1515
ColumnDescription,
1616
Formatter,
17+
useTranslation,
1718
} from '@openmsupply-client/common';
1819
import { usePatient, PatientRowFragment } from '../api';
1920
import { AppBarButtons } from './AppBarButtons';
@@ -34,6 +35,7 @@ export const programEnrolmentLabelAccessor: ColumnDataAccessor<
3435
};
3536

3637
const PatientListComponent: FC = () => {
38+
const t = useTranslation();
3739
const {
3840
updateSortQuery,
3941
updatePaginationQuery,
@@ -153,7 +155,7 @@ const PatientListComponent: FC = () => {
153155
setDocumentName(row.document?.name);
154156
navigate(String(row.id));
155157
}}
156-
noDataElement={<NothingHere />}
158+
noDataElement={<NothingHere body={t('error.no-patients')} />}
157159
/>
158160
</>
159161
);

0 commit comments

Comments
 (0)