From 7849b8ec7c10775459127b349c17c51867f4ba15 Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:25:28 +0300 Subject: [PATCH 1/2] crew manifest verb --- tgui/packages/tgui/interfaces/CrewManifest.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tgui/packages/tgui/interfaces/CrewManifest.jsx b/tgui/packages/tgui/interfaces/CrewManifest.jsx index 4039eb8fc3a2f..6aa8e5f84d07e 100644 --- a/tgui/packages/tgui/interfaces/CrewManifest.jsx +++ b/tgui/packages/tgui/interfaces/CrewManifest.jsx @@ -2,6 +2,7 @@ import { Icon, Section, Table, Tooltip } from 'tgui-core/components'; import { classes } from 'tgui-core/react'; import { useBackend } from '../backend'; +import { DEPARTMENTS_RU } from '../bandastation/ru_jobs'; import { Window } from '../layouts'; const commandJobs = [ @@ -26,9 +27,9 @@ export const CrewManifest = (props) => { className={'CrewManifest--' + dept} key={dept} title={ - dept + + (DEPARTMENTS_RU[dept] || dept) + (dept !== 'Misc' - ? ` (${positions[dept].open} positions open)` + ? ` (позиций открыто: ${positions[dept].open})` : '') } > From fefc4ecabae30da7201f9758401820df3c50a1f6 Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:35:36 +0300 Subject: [PATCH 2/2] fix tooltip --- .../packages/tgui/interfaces/CrewManifest.jsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tgui/packages/tgui/interfaces/CrewManifest.jsx b/tgui/packages/tgui/interfaces/CrewManifest.jsx index 6aa8e5f84d07e..3353750855ed4 100644 --- a/tgui/packages/tgui/interfaces/CrewManifest.jsx +++ b/tgui/packages/tgui/interfaces/CrewManifest.jsx @@ -2,16 +2,16 @@ import { Icon, Section, Table, Tooltip } from 'tgui-core/components'; import { classes } from 'tgui-core/react'; import { useBackend } from '../backend'; -import { DEPARTMENTS_RU } from '../bandastation/ru_jobs'; +import { DEPARTMENTS_RU, JOBS_RU } from '../bandastation/ru_jobs'; import { Window } from '../layouts'; const commandJobs = [ - 'Head of Personnel', - 'Head of Security', - 'Chief Engineer', - 'Research Director', - 'Chief Medical Officer', - 'Quartermaster', + JOBS_RU['Head of Personnel'], + JOBS_RU['Head of Security'], + JOBS_RU['Chief Engineer'], + JOBS_RU['Research Director'], + JOBS_RU['Chief Medical Officer'], + JOBS_RU['Quartermaster'], ]; export const CrewManifest = (props) => { @@ -58,8 +58,8 @@ export const CrewManifest = (props) => { )} - {crewMember.trim === 'Captain' && ( - + {crewMember.trim === JOBS_RU['Captain'] && ( + { )} {commandJobs.includes(crewMember.trim) && ( - +