diff --git a/src/pages/EditMaintenance.vue b/src/pages/EditMaintenance.vue index 604bf89b..97c4ec2a 100644 --- a/src/pages/EditMaintenance.vue +++ b/src/pages/EditMaintenance.vue @@ -268,7 +268,7 @@ export default { toast.success(res.msg); this.processing = false; this.$root.getMaintenanceList(); - this.$router.push("/maintenance/" + res.maintenanceID); + this.$router.push("/maintenance"); }); }); } else { @@ -285,6 +285,7 @@ export default { this.processing = false; this.$root.toastRes(res); this.init(); + this.$router.push("/maintenance"); }); }); } else { diff --git a/src/pages/MaintenanceDetails.vue b/src/pages/MaintenanceDetails.vue index 947a89b9..04c21691 100644 --- a/src/pages/MaintenanceDetails.vue +++ b/src/pages/MaintenanceDetails.vue @@ -91,7 +91,7 @@ export default { this.$root.deleteMaintenance(this.maintenance.id, (res) => { if (res.ok) { toast.success(res.msg); - this.$router.push("/dashboard"); + this.$router.push("/maintenance"); } else { toast.error(res.msg); } diff --git a/src/pages/ManageMaintenance.vue b/src/pages/ManageMaintenance.vue index 0041f3d2..3d5f0784 100644 --- a/src/pages/ManageMaintenance.vue +++ b/src/pages/ManageMaintenance.vue @@ -16,21 +16,37 @@ {{ $t("No maintenance") }} - -
+
+
+
+
{{ item.title }}
+
{{ item.description }}
+
-
-
{{ item.title }}
-
{{ item.description }}
+ +
+ {{ $t("Details") }} + + {{ $t("Edit") }} + +
- +
+ + + {{ $t("deleteMaintenanceMsg") }} + @@ -38,12 +54,17 @@ @@ -121,6 +158,7 @@ export default { text-decoration: none; border-radius: 10px; transition: all ease-in-out 0.15s; + justify-content: space-between; padding: 10px; min-height: 90px; @@ -128,29 +166,43 @@ export default { background-color: $highlight-white; } - &.active { - background-color: #cdf8f4; + &.ended { + .left-part { + opacity: 0.5; + .circle { + background-color: $dark-font-color; + } + } } - $logo-width: 70px; + .left-part { + display: flex; + gap: 12px; + align-items: center; - .logo { - width: $logo-width; - height: $logo-width; + .circle { + width: 25px; + height: 25px; + border-radius: 50rem; + background-color: $maintenance; - // Better when the image is loading - min-height: 1px; + } + + .info { + .title { + font-weight: bold; + font-size: 20px; + } + + .slug { + font-size: 14px; + } + } } - .info { - .title { - font-weight: bold; - font-size: 20px; - } - - .slug { - font-size: 14px; - } + .buttons { + display: flex; + gap: 8px; } } @@ -159,10 +211,6 @@ export default { &:hover { background-color: $dark-bg2; } - - &.active { - background-color: $dark-bg2; - } } }