Skip to content

Commit

Permalink
Merge pull request #395 from folio-org/release/8.1.1
Browse files Browse the repository at this point in the history
Release 8.1.1
  • Loading branch information
Jack-Golding authored Dec 9, 2024
2 parents 7113d10 + dc50f03 commit 4d5176f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change history for ui-local-kb-admin

## 8.1.1 2024-12-09
* ERM-3461 Cannot reset sync status via the UI

## 8.1.0 2024-11-01
* ERM-3380 Update module license and guidance for ui-local-kb-admin
* ERM-3354 Review and cleanup Module Descriptor for ui-local-kb-admin (Eureka)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/local-kb-admin",
"version": "8.1.0",
"version": "8.1.1",
"description": "ERM KB Administration for FOLIO with Stripes",
"main": "src/index.js",
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ const ExternalDataSourcesView = ({
const perm = stripes.hasPerm('ui-local-kb-admin.kbs.manage');
const [showConfirmResetSyncStatus, setShowConfirmResetSyncStatus] = useState(false);
const [deleteModal, setDeleteModal] = useState(false);
const hours = dayjs.utc().diff(dayjs.utc(externalKbs?.lastCheck), 'hours');
const messageType = hours >= 24 ? 'active' : 'passive';
const [editEDS, setEditEDS] = useState(false);
const ky = useOkapiKy();
const { data: externalDataSource = {} } = useQuery(
['ERM', 'KBs', KB_ENDPOINT(externalDataSourceId)],
() => ky.get(KB_ENDPOINT(externalDataSourceId)).json()
);
const hours = externalDataSource.lastCheck ? dayjs.utc().diff(dayjs(externalDataSource.lastCheck), 'hours') : 0;
const messageType = hours >= 24 ? 'active' : 'passive';

const { syncStatus, cursor, lastChecked } = useDisplayMetaInfo(externalDataSource);

const renderModal = () => {
Expand Down
14 changes: 7 additions & 7 deletions translations/ui-local-kb-admin/pl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"meta.title": "Administrator lokalnej bazy wiedzy",
"meta.title": "Lokalna Baza Wiedzy Admin",
"job.delete": "Usuń",
"prop.class": "Typ zadania",
"prop.ended": "Zakończone",
Expand Down Expand Up @@ -89,13 +89,13 @@
"settings.externalDataSources.delete.confirmLabel": "Usuń",
"settings.externalDataSources.delete.confirmHeading": "Usuń zewnętrzne źródło danych",
"settings.externalDataSources.delete.confirmMessage": "Zewnętrzne źródło danych <strong> {name} </strong> zostanie <strong> usunięte </strong>.",
"permission.jobs.view": "Administrator lokalnej bazy wiedzy: Wyświetlanie zadań",
"permission.jobs.edit": "Administrator lokalnej bazy wiedzy: Tworzenie zadań",
"permission.jobs.delete": "Administrator lokalnej bazy wiedzy: Usuwanie zadań",
"permission.kbs.manage": "Administrator lokalnej bazy wiedzy: Zarządzaj konfiguracją zdalnej bazy wiedzy",
"permission.jobs.view": "Lokalna Baza Wiedzy Admin: wyświetlanie zadań",
"permission.jobs.edit": "Lokalna Baza Wiedzy Admin: tworzenie zadań",
"permission.jobs.delete": "Lokalna Baza Wiedzy Admin: usuwanie zadań",
"permission.kbs.manage": "Lokalna Baza Wiedzy Admin: zarządzanie konfiguracją zdalnej bazy wiedzy",
"job.trustedSourceTI": "Ufaj temu zadaniu jako źródło metadanych instancji tytułu",
"settings.externalDataSources.trustedSourceTI": "Zaufany dla metadanych tytułu instancji",
"permission.proxyServer.manage": "Administrator lokalnej bazy wiedzy: Zarządzaj konfiguracją serwera proxy",
"permission.proxyServer.manage": "Lokalna Baza Wiedzy Admin: zarządzanie konfiguracją serwera proxy",
"section.proxyServerSettings": "Ustawienia serwera proxy",
"settings.proxyServerSettings": "Ustawienia serwera proxy",
"settings.proxyServerSettings.count": "{count, number} {count, plural, one { ustawienie serwera proxy } other { ustawienia serwera proxy }}",
Expand Down Expand Up @@ -160,7 +160,7 @@
"settings.externalDataSources.edit": "Edit {name}",
"settings.externalDataSources.lastChecked": "Last checked",
"settings.externalDataSources.cursor": "Cursor",
"settings.externalDataSources.syncStatus": "Sync status",
"settings.externalDataSources.syncStatus": "Status synchronizacji",
"cancel": "Anuluj",
"saveAndClose": "Save & close"
}
4 changes: 2 additions & 2 deletions translations/ui-local-kb-admin/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"job.delete.heading": "Excluir trabalho",
"job.delete.message": "O trabalho <strong>{name}</strong> será <strong>excluído</strong>",
"loading": "Carregando…",
"searchInputLabel": "Pesquisar trabalhos",
"searchInputLabel": "Buscar trabalhos",
"section.externalDataSources": "Fontes de dados externas",
"settings.externalDataSources": "Fontes de dados externas",
"settings.general": "Geral",
Expand Down Expand Up @@ -135,7 +135,7 @@
"shortcut.expandAll": "Expandir todos os acordeões",
"shortcut.collapseAll": "Recolher todos os acordeões",
"shortcut.expandOrCollapse": "Expandir ou recolher um acordeão",
"shortcut.goToSearchFilter": "Vá para o painel \"Pesquisar e filtrar\"",
"shortcut.goToSearchFilter": "Vá para o painel \"Buscar e filtrar\"",
"settings.externalDataSources.resetCursor": "Redefinir cursor",
"settings.externalDataSources.resetSyncStatus": "Redefinir status de sincronização",
"settings.externalDataSources.cancelLabel": "Cancelar",
Expand Down

0 comments on commit 4d5176f

Please sign in to comment.