Jelajahi Sumber

fix(Reports/ViewReport): works with nightmode, fixed issue with VueX

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 tahun lalu
induk
melakukan
5a5ad74f1a
1 mengubah file dengan 14 tambahan dan 2 penghapusan
  1. 14 2
      frontend/src/pages/Admin/ViewReport.vue

+ 14 - 2
frontend/src/pages/Admin/ViewReport.vue

@@ -105,7 +105,7 @@ export default {
 		sector: { type: String, default: "admin" }
 	},
 	computed: {
-		...mapState("viewReport", {
+		...mapState("modals/viewReport", {
 			report: state => state.report
 		})
 	},
@@ -157,9 +157,21 @@ export default {
 };
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 @import "../../styles/global.scss";
 
+.night-mode {
+	.message,
+	.table {
+		color: $night-mode-text;
+		background-color: $night-mode-bg-secondary;
+	}
+
+	.table tr:hover {
+		background-color: darken($night-mode-bg-secondary, 5%);
+	}
+}
+
 .back-to-song {
 	display: flex;
 	margin-bottom: 20px;