diff --git a/src/components/MonitorList.vue b/src/components/MonitorList.vue index 2bdde3e72..11b19f96d 100644 --- a/src/components/MonitorList.vue +++ b/src/components/MonitorList.vue @@ -3,19 +3,20 @@
+ -
@@ -40,11 +41,8 @@
- - {{ $tc("selectedMonitorCount", selectedMonitorCount) }} - @@ -74,13 +73,21 @@
  • - - {{ $t("Delete") }} + + + {{ $t("Delete") }}
  • + + {{ $tc("selectedMonitorCountMsg", selectedMonitorCount) }} +
    this.$root.monitorList[id].active); if (activeMonitors.length === 0) { @@ -361,6 +372,10 @@ export default { * @returns {void} */ resumeSelected() { + if (this.bulkActionInProgress) { + return; + } + const inactiveMonitors = Object.keys(this.selectedMonitors).filter((id) => !this.$root.monitorList[id].active); if (inactiveMonitors.length === 0) { @@ -379,6 +394,10 @@ export default { * @returns {Promise} */ async deleteSelected() { + if (this.bulkActionInProgress) { + return; + } + const monitorIds = Object.keys(this.selectedMonitors); this.bulkActionInProgress = true; @@ -409,7 +428,7 @@ export default { this.$root.toastSuccess(this.$tc("deletedMonitorsMsg", successCount)); } if (errorCount > 0) { - this.$root.toastError(this.$t("bulkDeleteErrorMsg", [errorCount])); + this.$root.toastError(this.$tc("bulkDeleteErrorMsg", errorCount)); } this.cancelSelectMode(); @@ -541,7 +560,9 @@ export default { gap: 8px; padding: 10px; - @media (max-width: 550px) { + @media (min-width: 550px) and (max-width: 769px), + (min-width: 1150px) and (max-width: 1199px), + (min-width: 1500px) { flex-wrap: wrap; } } @@ -672,10 +693,16 @@ export default { align-items: center; position: relative; - @media (max-width: 550px) { + @media (min-width: 550px) and (max-width: 769px), + (min-width: 1150px) and (max-width: 1199px), + (min-width: 1500px) { order: -1; width: 100%; margin-bottom: 8px; + + form { + width: 100%; + } } } @@ -696,7 +723,9 @@ export default { max-width: 15em; padding-right: 30px; - @media (max-width: 550px) { + @media (min-width: 550px) and (max-width: 769px), + (min-width: 1150px) and (max-width: 1199px), + (min-width: 1500px) { max-width: 100%; width: 100%; }