Delete all selected event logs

-Earlier all the event logs were deleted ID wise.
-Now when all logs are selected then below API will be called to delete all the logs.
-API : '/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog'.

Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: Ib7026a4fe3c324e6a998be747325f379a944f1c8
diff --git a/src/views/Health/EventLogs/EventLogs.vue b/src/views/Health/EventLogs/EventLogs.vue
index 90f589a..b4a4712 100644
--- a/src/views/Health/EventLogs/EventLogs.vue
+++ b/src/views/Health/EventLogs/EventLogs.vue
@@ -353,7 +353,19 @@
             }
           )
           .then((deleteConfirmed) => {
-            if (deleteConfirmed) this.deleteLogs(uris);
+            if (deleteConfirmed) {
+              if (this.selectedRows.length === this.allLogs.length) {
+                this.$store
+                  .dispatch(
+                    'eventLog/deleteAllEventLogs',
+                    this.selectedRows.length
+                  )
+                  .then((message) => this.successToast(message))
+                  .catch(({ message }) => this.errorToast(message));
+              } else {
+                this.deleteLogs(uris);
+              }
+            }
           });
       }
     },