feat(help): finish setup for help/home-page menu
This commit is contained in:
parent
4f0f5ae30f
commit
4c88a72a2d
|
|
@ -300,6 +300,20 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/schedule-presets/apply-day-preset": {
|
||||||
|
"post": {
|
||||||
|
"operationId": "SchedulePresetsController_applyPresetToDay",
|
||||||
|
"parameters": [],
|
||||||
|
"responses": {
|
||||||
|
"201": {
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"SchedulePresets"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/expense/create": {
|
"/expense/create": {
|
||||||
"post": {
|
"post": {
|
||||||
"operationId": "ExpenseController_create",
|
"operationId": "ExpenseController_create",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Controller, Get } from "@nestjs/common";
|
import { Controller, Get } from "@nestjs/common";
|
||||||
import { ModuleAccessAllowed } from "src/common/decorators/modules-guard.decorators";
|
import { ModuleAccessAllowed } from "src/common/decorators/modules-guard.decorators";
|
||||||
import { HomePageService } from "src/identity-and-account/home-page/home-page.service";
|
import { HomePageService } from "src/identity-and-account/help/home-page.service";
|
||||||
import { Modules as ModulesEnum } from ".prisma/client";
|
import { Modules as ModulesEnum } from ".prisma/client";
|
||||||
import { Access } from "src/common/decorators/module-access.decorators";
|
import { Access } from "src/common/decorators/module-access.decorators";
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { Module } from "@nestjs/common";
|
import { Module } from "@nestjs/common";
|
||||||
import { EmailToIdResolver } from "src/common/mappers/email-id.mapper";
|
import { EmailToIdResolver } from "src/common/mappers/email-id.mapper";
|
||||||
import { HomePageController } from "src/identity-and-account/home-page/home-page.controller";
|
import { HomePageController } from "src/identity-and-account/help/home-page.controller";
|
||||||
import { HomePageService } from "src/identity-and-account/home-page/home-page.service";
|
import { HomePageService } from "src/identity-and-account/help/home-page.service";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
controllers: [HomePageController],
|
controllers: [HomePageController],
|
||||||
|
|
@ -30,7 +30,7 @@ export class HomePageService {
|
||||||
const help_message: string[] = [];
|
const help_message: string[] = [];
|
||||||
|
|
||||||
if (module_access.dashboard) help_message.push('dashboard');
|
if (module_access.dashboard) help_message.push('dashboard');
|
||||||
if (module_access.personal_profile) help_message.push('personnal_profile');
|
if (module_access.personal_profile) help_message.push('personal_profile');
|
||||||
if (module_access.timesheets) help_message.push('timesheets');
|
if (module_access.timesheets) help_message.push('timesheets');
|
||||||
if (module_access.employee_list) help_message.push('employee_list');
|
if (module_access.employee_list) help_message.push('employee_list');
|
||||||
if (module_access.employee_management) help_message.push('employee_management');
|
if (module_access.employee_management) help_message.push('employee_management');
|
||||||
|
|
@ -12,11 +12,11 @@ import { AccessGetService } from "src/identity-and-account/user-module-access/se
|
||||||
import { AccessUpdateService } from "src/identity-and-account/user-module-access/services/module-access-update.service";
|
import { AccessUpdateService } from "src/identity-and-account/user-module-access/services/module-access-update.service";
|
||||||
import { UsersService } from "src/identity-and-account/users-management/services/users.service";
|
import { UsersService } from "src/identity-and-account/users-management/services/users.service";
|
||||||
import { UsersModule } from "src/identity-and-account/users-management/users.module";
|
import { UsersModule } from "src/identity-and-account/users-management/users.module";
|
||||||
import { HomePageModule } from "src/identity-and-account/home-page/home-page.module";
|
import { HomePageModule } from "src/identity-and-account/help/home-page.module";
|
||||||
import { EmployeesCreateService } from "src/identity-and-account/employees/services/employees-create.service";
|
import { EmployeesCreateService } from "src/identity-and-account/employees/services/employees-create.service";
|
||||||
import { EmployeesUpdateService } from "src/identity-and-account/employees/services/employees-update.service";
|
import { EmployeesUpdateService } from "src/identity-and-account/employees/services/employees-update.service";
|
||||||
import { HomePageController } from "src/identity-and-account/home-page/home-page.controller";
|
import { HomePageController } from "src/identity-and-account/help/home-page.controller";
|
||||||
import { HomePageService } from "src/identity-and-account/home-page/home-page.service";
|
import { HomePageService } from "src/identity-and-account/help/home-page.service";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,6 @@ export class SchedulePresetsApplyService {
|
||||||
await this.createShiftFromPreset(shift, toDateFromString(date), timesheet_id);
|
await this.createShiftFromPreset(shift, toDateFromString(date), timesheet_id);
|
||||||
|
|
||||||
}
|
}
|
||||||
// await this.shiftService.createShift(employee_id.data, shift);
|
|
||||||
return { success: true, data: true };
|
return { success: true, data: true };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user