]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Fixes ICU selection regression
authorStephan Müller <smueller@suse.com>
Fri, 19 Jun 2020 15:21:49 +0000 (17:21 +0200)
committerStephan Müller <smueller@suse.com>
Wed, 1 Jul 2020 16:35:07 +0000 (18:35 +0200)
This regression came through the update to angular 9. The regression was
that ICU expressions inside ng-containers are not resolved anymore since
the update to angular 9.

Fixes: https://tracker.ceph.com/issues/45650
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-peer-modal/pool-edit-peer-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-scrub-modal/osd-scrub-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-matcher-modal/silence-matcher-modal.component.html

index 942e7a66b8e4a54921aaeb861728f54d9004df46..b563faed1e8907f009e46af01159aab03615425e 100644 (file)
@@ -1,7 +1,6 @@
 <cd-modal [modalRef]="activeModal">
-  <ng-container class="modal-title"
-                i18n>{mode, select, edit {Edit} other {Add}}
-  pool mirror peer</ng-container>
+  <span class="modal-title"
+        i18n>{mode, select, edit {Edit} other {Add}} pool mirror peer</span>
 
   <ng-container class="modal-content">
     <form name="editPeerForm"
@@ -11,9 +10,9 @@
           novalidate>
       <div class="modal-body">
         <p>
-          <ng-container i18n>{mode, select, edit {Edit} other {Add}} the pool
+          <span i18n>{mode, select, edit {Edit} other {Add}} the pool
           mirror peer attributes for pool <kbd>{{ poolName }}</kbd> and click
-          <kbd>Submit</kbd>.</ng-container>
+          <kbd>Submit</kbd>.</span>
         </p>
 
         <div class="form-group">
index 91ddad6ae66884a1f99b641f1a1993c74c38dea9..0cc8103006185a7d78e7774ab2314a3510c455d6 100644 (file)
@@ -68,7 +68,7 @@
   <div *ngIf="!safeToPerform"
        class="danger">
     <cd-alert-panel type="warning"
-                    i18n>The {selection.hasSingleSelection, select, true {OSD is} false {OSDs are}} not safe to be
+                    i18n>The {selection.hasSingleSelection, select, true {OSD is} other {OSDs are}} not safe to be
       {{ actionDescription }}! {{ message }}</cd-alert-panel>
   </div>
   <ng-container i18n><strong>OSD {{ osdIds | join }}</strong> will be
index c82063b3c09c4ffad99c436aed0167e37a618c05..6f135adf17ceedc86bba6646f3942af0b9f72961 100644 (file)
@@ -1,6 +1,6 @@
 <cd-modal [modalRef]="activeModal">
-  <ng-container class="modal-title"
-                i18n>OSDs {deep, select, 1 {Deep }}Scrub</ng-container>
+  <span class="modal-title"
+        i18n>OSDs {deep, select, true {Deep } other {}}Scrub</span>
 
   <ng-container class="modal-content">
     <form name="scrubForm"
@@ -8,7 +8,7 @@
           [formGroup]="scrubForm"
           novalidate>
       <div class="modal-body">
-        <p i18n>You are about to apply a {deep, select, 1 {deep }}scrub to
+        <p i18n>You are about to apply a {deep, select, true {deep } other {}}scrub to
           the OSD(s): <strong>{{ selected | join }}</strong>.</p>
       </div>
 
index 853b24520d20d6a1b3083cc708a6c11bc993016c..e8885d596fd623e28eabc7ae027dae37e3438b83 100644 (file)
@@ -1,6 +1,6 @@
 <cd-modal [modalRef]="activeModal">
-  <ng-container class="modal-title"
-                i18n>Matcher</ng-container>
+  <span class="modal-title"
+        i18n>{editMode, select, true {Edit} other {Add}} Matcher</span>
 
   <ng-container class="modal-content">
     <form class="form"
@@ -75,7 +75,7 @@
       <div class="modal-footer">
         <cd-submit-button (submitAction)="onSubmit()"
                           [form]="form">
-          <ng-container i18n>{editMode, select, 1 {Update} other {Add}}</ng-container>
+          <span i18n>{editMode, select, true {Edit} other {Add}}</span>
         </cd-submit-button>
         <cd-back-button [back]="activeModal.close"
                         name="Close"