feat: Add assigned user initial to project details and update translations
This commit is contained in:
@@ -165,6 +165,7 @@ const translations = {
|
||||
createFirstProject: "Utwórz pierwszy projekt",
|
||||
noMatchingResults: "Brak projektów pasujących do kryteriów wyszukiwania. Spróbuj zmienić wyszukiwane frazy.",
|
||||
showingResults: "Wyświetlono {shown} z {total} projektów",
|
||||
assigned: "Przypisany",
|
||||
deleteConfirm: "Czy na pewno chcesz usunąć ten projekt?",
|
||||
deleteSuccess: "Projekt został pomyślnie usunięty",
|
||||
createSuccess: "Projekt został pomyślnie utworzony",
|
||||
@@ -719,6 +720,7 @@ const translations = {
|
||||
createFirstProject: "Create first project",
|
||||
noMatchingResults: "No projects match the search criteria. Try changing your search terms.",
|
||||
showingResults: "Showing {shown} of {total} projects",
|
||||
assigned: "Assigned",
|
||||
deleteConfirm: "Are you sure you want to delete this project?",
|
||||
deleteSuccess: "Project deleted successfully",
|
||||
createSuccess: "Project created successfully",
|
||||
|
||||
@@ -11,7 +11,8 @@ export function getAllProjects(contractId = null) {
|
||||
creator.name as created_by_name,
|
||||
creator.username as created_by_username,
|
||||
assignee.name as assigned_to_name,
|
||||
assignee.username as assigned_to_username
|
||||
assignee.username as assigned_to_username,
|
||||
assignee.initial as assigned_to_initial
|
||||
FROM projects p
|
||||
LEFT JOIN contracts c ON p.contract_id = c.contract_id
|
||||
LEFT JOIN users creator ON p.created_by = creator.id
|
||||
@@ -37,7 +38,8 @@ export function getProjectById(id) {
|
||||
creator.name as created_by_name,
|
||||
creator.username as created_by_username,
|
||||
assignee.name as assigned_to_name,
|
||||
assignee.username as assigned_to_username
|
||||
assignee.username as assigned_to_username,
|
||||
assignee.initial as assigned_to_initial
|
||||
FROM projects p
|
||||
LEFT JOIN users creator ON p.created_by = creator.id
|
||||
LEFT JOIN users assignee ON p.assigned_to = assignee.id
|
||||
|
||||
Reference in New Issue
Block a user