]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Remove param when calling notificationService.show 26447/head
authorVolker Theile <vtheile@suse.com>
Fri, 15 Feb 2019 13:31:30 +0000 (14:31 +0100)
committerVolker Theile <vtheile@suse.com>
Fri, 22 Feb 2019 09:01:16 +0000 (10:01 +0100)
The message parameter should be used for error notifications only.

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/locale/messages.xlf

index 27b9e186b2a721cdced9d222662619cb033d3959..50fddfdd521ea22c2731ca0d31686a9dc195b943 100644 (file)
@@ -100,8 +100,7 @@ export class IscsiTargetDiscoveryModalComponent implements OnInit {
       () => {
         this.notificationService.show(
           NotificationType.success,
-          this.i18n('Discovery authentication was updated.'),
-          this.i18n('Discovery authentication')
+          this.i18n('Updated discovery authentication')
         );
         this.bsModalRef.hide();
       },
index 460f7eaf8eedae220971727d43a36bba974e5f90..11063864b65abe104036a7969b055ca558868e6b 100644 (file)
@@ -177,8 +177,7 @@ export class ConfigurationFormComponent implements OnInit {
         () => {
           this.notificationService.show(
             NotificationType.success,
-            this.i18n('Config option {{name}} has been updated.', { name: request.name }),
-            this.i18n('Update config option')
+            this.i18n('Updated config option {{name}}', { name: request.name })
           );
           this.router.navigate(['/configuration']);
         },
index b6fd5775afa5b101900c7b05d9091396bc884413..92985516a001ca48a5882f84ddbe487a81a4f593 100644 (file)
@@ -138,11 +138,7 @@ export class OsdFlagsModalComponent implements OnInit {
 
     this.osdService.updateFlags(newFlags).subscribe(
       () => {
-        this.notificationService.show(
-          NotificationType.success,
-          this.i18n('OSD Flags were updated successfully.'),
-          this.i18n('OSD Flags')
-        );
+        this.notificationService.show(NotificationType.success, this.i18n('Updated OSD Flags'));
         this.bsModalRef.hide();
       },
       () => {
index 651600edcb896a00061e1429a613576758e057f4..dcb7db6985f4c92c89cd33aaf831130457a806bf 100755 (executable)
@@ -230,10 +230,9 @@ export class OsdRecvSpeedModalComponent implements OnInit {
       () => {
         this.notificationService.show(
           NotificationType.success,
-          this.i18n('OSD recovery speed priority "{{value}}" was set successfully.', {
+          this.i18n('Updated OSD recovery speed priority "{{value}}"', {
             value: this.osdRecvSpeedForm.getValue('priority')
-          }),
-          this.i18n('OSD recovery speed priority')
+          })
         );
         this.bsModalRef.hide();
       },
index 13dad708dbe6b207f500d46592ebe4ed21231eb3..8bfc01f2474389d3ee34089f917db6d9d1207664 100644 (file)
           <context context-type="linenumber">1</context>
         </context-group>
       </trans-unit>
-      <trans-unit id="bfd67d01ffc87759d7f29ecb67e64ec6c1672fdd" datatype="html">
-        <source>Discovery authentication was updated.</source>
-        <context-group purpose="location">
-          <context context-type="sourcefile">src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-modal.component.ts</context>
-          <context context-type="linenumber">1</context>
-        </context-group>
-      </trans-unit>
-      <trans-unit id="8414a5cb9d71cc1b21b10e4a9d1f2dad558f3361" datatype="html">
-        <source>Discovery authentication</source>
+      <trans-unit id="e5e7d62e942083a59b0b31f54e17cd7958186052" datatype="html">
+        <source>Updated discovery authentication</source>
         <context-group purpose="location">
           <context context-type="sourcefile">src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-modal.component.ts</context>
           <context context-type="linenumber">1</context>
           <context context-type="linenumber">1</context>
         </context-group>
       </trans-unit>
-      <trans-unit id="cdb623df78c6ed1fdd9e6dc35f83d6dbea75ebfa" datatype="html">
-        <source>Config option <x id="INTERPOLATION" equiv-text="{{name}}"/> has been updated.</source>
-        <context-group purpose="location">
-          <context context-type="sourcefile">src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.ts</context>
-          <context context-type="linenumber">1</context>
-        </context-group>
-      </trans-unit>
-      <trans-unit id="a773d21a875b944ba7b067f348398cfd5e9550cc" datatype="html">
-        <source>Update config option</source>
+      <trans-unit id="1cdc60cfc09c257625768f3d2082816cdef27279" datatype="html">
+        <source>Updated config option <x id="INTERPOLATION" equiv-text="{{name}}"/></source>
         <context-group purpose="location">
           <context context-type="sourcefile">src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.ts</context>
           <context context-type="linenumber">1</context>
           <context context-type="linenumber">1</context>
         </context-group>
       </trans-unit>
-      <trans-unit id="0182a66735272f5c540a0c65ff3f5a7913ac1b74" datatype="html">
-        <source>OSD Flags were updated successfully.</source>
-        <context-group purpose="location">
-          <context context-type="sourcefile">src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts</context>
-          <context context-type="linenumber">1</context>
-        </context-group>
-      </trans-unit>
-      <trans-unit id="fbfecb196a0896028638e21655c6fed6a1f91dc0" datatype="html">
-        <source>OSD Flags</source>
+      <trans-unit id="3c384e2e80c6b5eb24861fbf4225b69486cff4a3" datatype="html">
+        <source>Updated OSD Flags</source>
         <context-group purpose="location">
           <context context-type="sourcefile">src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.ts</context>
           <context context-type="linenumber">1</context>
           <context context-type="linenumber">1</context>
         </context-group>
       </trans-unit>
-      <trans-unit id="92a8cbd0b31b1a5a64fe3a3245437ecf14b6d74d" datatype="html">
-        <source>OSD recovery speed priority &quot;<x id="INTERPOLATION" equiv-text="{{value}}"/>&quot; was set successfully.</source>
-        <context-group purpose="location">
-          <context context-type="sourcefile">src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.component.ts</context>
-          <context context-type="linenumber">1</context>
-        </context-group>
-      </trans-unit>
-      <trans-unit id="87241d8eb7bf0d14756f27febe8d0a84015627db" datatype="html">
-        <source>OSD recovery speed priority</source>
+      <trans-unit id="89553524f4e7db5c437b07dcfdc7b831d56ded1a" datatype="html">
+        <source>Updated OSD recovery speed priority &quot;<x id="INTERPOLATION" equiv-text="{{value}}"/>&quot;</source>
         <context-group purpose="location">
           <context context-type="sourcefile">src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.component.ts</context>
           <context context-type="linenumber">1</context>