-
+
Total Shipments
Performance
-
+
-
+
- Total Shipments
@@ -56,7 +58,7 @@
+
- Daily Sales
@@ -72,7 +74,7 @@
+
Completed Tasks
@@ -91,20 +93,18 @@
-
+
@@ -112,16 +112,12 @@
@@ -222,6 +218,14 @@
}
}
},
+ computed: {
+ enableRTL() {
+ return this.$route.query.enableRTL;
+ },
+ isRTL() {
+ return this.$rtl.isRTL;
+ }
+ },
methods: {
initBigChart(index) {
let chartData = {
@@ -249,7 +253,15 @@
}
},
mounted() {
+ if (this.enableRTL) {
+ this.$rtl.enableRTL();
+ }
this.initBigChart(0);
+ },
+ beforeDestroy() {
+ if (this.$rtl.isRTL) {
+ this.$rtl.disableRTL();
+ }
}
};
diff --git a/src/pages/RTLSupport.vue b/src/pages/RTLSupport.vue
deleted file mode 100644
index 291c5cf..0000000
--- a/src/pages/RTLSupport.vue
+++ /dev/null
@@ -1,254 +0,0 @@
-
- Tasks(5)
today
-
-
-
-
+
+ Action
+ Another action
+ Something else
+
-
-
-
+
+
Simple Table
+Simple Table
+
+
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/router/index.js b/src/router/index.js
index cd48f3e..2fcd4bd 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,7 +6,7 @@ Vue.use(VueRouter);
// configure router
const router = new VueRouter({
routes, // short for routes: routes
- linkActiveClass: "active",
+ linkExactActiveClass: "active",
scrollBehavior: (to) => {
if (to.hash) {
return {selector: to.hash}
diff --git a/src/router/routes.js b/src/router/routes.js
index 744162e..4ae27e4 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -4,7 +4,6 @@ import NotFound from "@/pages/NotFoundPage.vue";
// Admin pages
import Dashboard from "@/pages/Dashboard.vue";
-import RTLSupport from "@/pages/RTLSupport.vue";
import Profile from "@/pages/Profile.vue";
import Notifications from "@/pages/Notifications.vue";
import Icons from "@/pages/Icons.vue";
@@ -52,12 +51,7 @@ const routes = [
path: "table-list",
name: "table-list",
component: TableList
- },
- {
- path: "rtl-support",
- name: "RTLSupport",
- component: RTLSupport
- },
+ }
]
},
{ path: "*", component: NotFound },
-
-
-
-
-
-
-
-
-
-
-
- Total Shipments
-Performance
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Total Shipments
-763,215
- -
-
-
-
-
-
-
-
-
- Daily Sales
-3,500€
- -
-
-
-
-
-
-
-
-
- Completed Tasks
-12,100K
- -
-
-
-
-
-
-
-
-
-
-
- Tasks(5)
-today
-
-
-
-
-
-
-
-
-
-
-
-
- Simple Table
-
-
-
-