Skip to content

Commit

Permalink
feat: change resource to tools
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Jul 1, 2022
1 parent 1d6f062 commit 2e91bd4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/apps/ui/components/dashboard/DashboardFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
<span>Videos</span>
</router-link>

<!-- resources -->
<!-- Tools -->
<router-link
:class="{ active: $route.name === 'Resources' }"
to="/dashboard/Resources"
:class="{ active: $route.name === 'Tools' }"
to="/dashboard/tools"
class="d-flex flex-column py-3 gap-1"
>
<font-awesome-icon icon="screwdriver-wrench" />
<span>Resources</span>
<span>Tools</span>
</router-link>

<!-- settings -->
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions src/apps/ui/router.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import Videos from './pages/dashboard/Videos.vue';
import VideoDetails from './components/dashboard/VideoDetails.vue';

// resources
import Resources from './pages/dashboard/Resources.vue';
import OneRMCalculator from './pages/dashboard/resources/OneRMCalculator.vue';
import Tools from './pages/dashboard/Tools.vue';
import OneRMCalculator from './pages/dashboard/tools/OneRMCalculator.vue';

const routes = [
// regular
Expand Down Expand Up @@ -133,17 +133,17 @@ const routes = [
layout: 'DashboardLayout',
},
},
// resources
// Tools
{
path: '/dashboard/resources',
name: 'Resources',
component: Resources,
path: '/dashboard/tools',
name: 'Tools',
component: Tools,
meta: {
layout: 'DashboardLayout',
},
},
{
path: '/dashboard/resources/onerm-calculator',
path: '/dashboard/tools/onerm-calculator',
name: 'OneRMCalculator',
component: OneRMCalculator,
meta: {
Expand Down

0 comments on commit 2e91bd4

Please sign in to comment.