Merge branch 'main' of https://git.targo.ca/Targo/targo_frontend into dev/nicolas/staging-prep
This commit is contained in:
commit
27ca2a6269
|
|
@ -1,7 +1,4 @@
|
||||||
<script
|
<script setup lang="ts">
|
||||||
setup
|
|
||||||
lang="ts"
|
|
||||||
>
|
|
||||||
//default images
|
//default images
|
||||||
// import default_dashboard from 'src/assets/help-ss/default-dashboard.png';
|
// import default_dashboard from 'src/assets/help-ss/default-dashboard.png';
|
||||||
import default_personal_profile from 'src/assets/help-ss/default-personnal_profile.png';
|
import default_personal_profile from 'src/assets/help-ss/default-personnal_profile.png';
|
||||||
|
|
@ -32,6 +29,7 @@
|
||||||
|
|
||||||
const help_module = props.help_module;
|
const help_module = props.help_module;
|
||||||
const current_path = ref<string>(default_images[help_module]);
|
const current_path = ref<string>(default_images[help_module]);
|
||||||
|
const EXCLUDED_MODULES = ['dashboard', 'chatbot']
|
||||||
|
|
||||||
const switchSide = (index: number) => {
|
const switchSide = (index: number) => {
|
||||||
if (index % 2 !== 0) {
|
if (index % 2 !== 0) {
|
||||||
|
|
@ -44,7 +42,7 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="help_module !== 'dashboard'"
|
v-if="!EXCLUDED_MODULES.includes(help_module)"
|
||||||
class="column q-my-xs bg-secondary q-py-xl"
|
class="column q-my-xs bg-secondary q-py-xl"
|
||||||
>
|
>
|
||||||
<!-- Card Header -->
|
<!-- Card Header -->
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@ export type HelpModuleOptions = {
|
||||||
export type Options = Record<UserModuleAccess, HelpModuleOptions[]>;
|
export type Options = Record<UserModuleAccess, HelpModuleOptions[]>;
|
||||||
export type PartialOptions = Partial<Record<UserModuleAccess, HelpModuleOptions[]>>;
|
export type PartialOptions = Partial<Record<UserModuleAccess, HelpModuleOptions[]>>;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Shared images and descriptions
|
//Shared images and descriptions
|
||||||
import calendar from 'src/assets/help-ss/calendar.png';
|
import calendar from 'src/assets/help-ss/calendar.png';
|
||||||
import employee_list_display from 'src/assets/help-ss/employee-list-grid.png';
|
import employee_list_display from 'src/assets/help-ss/employee-list-grid.png';
|
||||||
|
|
@ -134,6 +132,15 @@ export const timesheets_approval_options: HelpModuleOptions[] = [
|
||||||
{ label: 'help.tutorial.shared.calendar', path: calendar, description: calendar_nav_desc, icon: 'calendar_month' },
|
{ label: 'help.tutorial.shared.calendar', path: calendar, description: calendar_nav_desc, icon: 'calendar_month' },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
// Chatbot images and descriptions
|
||||||
|
import chatbot_access from 'src/assets/help-ss/access-management.png';
|
||||||
|
const chatbot_access_desc = "descriptions.chatbot.access";
|
||||||
|
|
||||||
|
export const chatbot_options: HelpModuleOptions[] = [
|
||||||
|
{ label: 'help.tutorial.chatbot.access', path: chatbot_access, description: chatbot_access_desc, icon: "access"}
|
||||||
|
];
|
||||||
|
|
||||||
export const help_module_details: Options = {
|
export const help_module_details: Options = {
|
||||||
dashboard: [],
|
dashboard: [],
|
||||||
personal_profile: profile_options,
|
personal_profile: profile_options,
|
||||||
|
|
@ -143,8 +150,3 @@ export const help_module_details: Options = {
|
||||||
timesheets_approval: timesheets_approval_options,
|
timesheets_approval: timesheets_approval_options,
|
||||||
chatbot: [],
|
chatbot: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user