diff --git a/packages/ilios-common/.lint-todo b/packages/ilios-common/.lint-todo index 932e220aa6..d908e53911 100644 --- a/packages/ilios-common/.lint-todo +++ b/packages/ilios-common/.lint-todo @@ -1,4 +1,3 @@ -add|ember-template-lint|no-at-ember-render-modifiers|5|2|5|2|fb439ee6b510cea24e2b47eda775aee573be6e1e|1731542400000|1762646400000|1793750400000|addon/components/api-version-notice.hbs add|ember-template-lint|no-at-ember-render-modifiers|25|6|25|6|1ef231a97c0ec761eaafb3e76093515e5523ff27|1731542400000|1762646400000|1793750400000|addon/components/choose-material-type.hbs add|ember-template-lint|no-at-ember-render-modifiers|26|6|26|6|df94e6558ff62dea69f6f656f668f29b56bcc378|1731542400000|1762646400000|1793750400000|addon/components/choose-material-type.hbs add|ember-template-lint|no-at-ember-render-modifiers|7|2|7|2|1a2522cd1202904fb09a6e811dec6b46d8189ab3|1731542400000|1762646400000|1793750400000|addon/components/daily-calendar-event.hbs diff --git a/packages/ilios-common/addon/components/api-version-notice.hbs b/packages/ilios-common/addon/components/api-version-notice.hbs index 1b1878fdc1..9e56f5fd81 100644 --- a/packages/ilios-common/addon/components/api-version-notice.hbs +++ b/packages/ilios-common/addon/components/api-version-notice.hbs @@ -2,7 +2,6 @@ class="api-version-notice {{if this.mismatched "mismatch"}}" hidden={{not this.mismatched}} role={{if this.mismatched "alert" false}} - {{did-insert (perform this.check)}} data-test-load-finished={{this.check.lastSuccessful.value}} data-test-api-version-notice > diff --git a/packages/ilios-common/addon/components/api-version-notice.js b/packages/ilios-common/addon/components/api-version-notice.js index f6fc4b0dde..4f7265a22c 100644 --- a/packages/ilios-common/addon/components/api-version-notice.js +++ b/packages/ilios-common/addon/components/api-version-notice.js @@ -11,6 +11,11 @@ export default class ApiVersionNoticeComponent extends Component { @tracked countdownToUpdate = null; @tracked showReloadButton = false; + constructor() { + super(...arguments); + this.check.perform(); + } + reload() { window.location.reload(); } diff --git a/packages/ilios-common/translations/en-us.yaml b/packages/ilios-common/translations/en-us.yaml index a7f63e9a67..ec2e9c81c7 100644 --- a/packages/ilios-common/translations/en-us.yaml +++ b/packages/ilios-common/translations/en-us.yaml @@ -14,7 +14,7 @@ general: allMaterials: All Materials allWeeks: All Weeks apiVersionMismatch: API Version Mismatch - apiVersionMismatchDetails: "This is usually a temporary error in your browser; Ilios is in read-only mode until it resolved. If updating does not help, please notify an administrator or technical owner of the system regarding this error. You may also wish to try a different browser." + apiVersionMismatchDetails: "This is usually a temporary error in your browser; Ilios is in read-only mode until it is resolved. If updating does not help, please notify an administrator or technical owner of the system regarding this error. You may also wish to try a different browser." assignedTerms: Assigned Terms associatedGroups: Associated Groups attendanceIs_Required_: "Attendance is ''required''" diff --git a/packages/ilios-common/translations/es.yaml b/packages/ilios-common/translations/es.yaml index fa1c493899..466d5b009b 100644 --- a/packages/ilios-common/translations/es.yaml +++ b/packages/ilios-common/translations/es.yaml @@ -14,7 +14,7 @@ general: allMaterials: Todos los Materiales allWeeks: Todas las Semanas apiVersionMismatch: Incompatibilidad de versión de API - apiVersionMismatchDetails: "Este interfaz de usuario no corresponde a la versión del API con el cual se comunica. Por favor notifique a un administrador o el dueño técnico del sistema con respecto a este error ''inmediatamente'', no puede trabajar con Ilios hasta que esto ha sido resuelto" + apiVersionMismatchDetails: "Por lo general, se trata de un error temporal de su navegador; Ilios está en modo de solo lectura hasta que se resuelva. Si la actualización no soluciona el problema, notifique a un administrador o al propietario técnico del sistema sobre este error. También puede probar con otro navegador." assignedTerms: Términos asignados associatedGroups: Grupos Associados attendanceIs_Required_: "Se ''require'' asistencia"