This commit is contained in:
@@ -18,7 +18,7 @@ export function requesterName(item: RequesterLike) {
|
||||
|| item.createdBy
|
||||
|| item.requestedByEmail
|
||||
|| item.createdByEmail
|
||||
|| 'admin';
|
||||
|| '-';
|
||||
}
|
||||
|
||||
export function Requester({ item, label = '작업자' }: { item: RequesterLike; label?: string }) {
|
||||
@@ -30,7 +30,7 @@ export function Requester({ item, label = '작업자' }: { item: RequesterLike;
|
||||
return (
|
||||
<span className="inline-flex h-4 min-w-0 items-center gap-1.5 align-middle text-muted-foreground">
|
||||
<span className="leading-none">{label}</span>
|
||||
{avatarUrl && !failed ? (
|
||||
{name === '-' ? null : avatarUrl && !failed ? (
|
||||
<img
|
||||
src={avatarUrl}
|
||||
alt=""
|
||||
|
||||
@@ -3,7 +3,6 @@ import { useEffect, useMemo, useState } from 'react';
|
||||
import { Badge, Button, Card, CardHeader, Modal } from '../../components/ui';
|
||||
import { useToast } from '../../components/toast';
|
||||
import { PageTitle } from '../../layout/AppLayout';
|
||||
import { readCurrentAdmin } from '../../lib/admin-app-permissions';
|
||||
import { formatDateTime } from '../../lib/date-format';
|
||||
import { LoadingModal, useMinimumLoading } from '../operations/operation-utils';
|
||||
import {
|
||||
@@ -51,23 +50,19 @@ function jobTime(job: LauncherBuildJob) {
|
||||
|
||||
function BuildWorker({ job }: { job: LauncherBuildJob }) {
|
||||
const [failed, setFailed] = useState(false);
|
||||
const currentAdmin = readCurrentAdmin();
|
||||
const name = job.requestedByName
|
||||
|| job.createdByName
|
||||
|| job.requestedBy
|
||||
|| job.createdBy
|
||||
|| currentAdmin?.name
|
||||
|| currentAdmin?.email
|
||||
|| 'admin';
|
||||
|| '-';
|
||||
const avatarUrl = job.requestedByAvatarUrl
|
||||
|| job.createdByAvatarUrl
|
||||
|| currentAdmin?.avatarUrl
|
||||
|| '';
|
||||
const initial = name.trim().charAt(0).toUpperCase() || '?';
|
||||
|
||||
return (
|
||||
<span className="inline-flex h-4 min-w-0 items-center gap-1.5 align-middle">
|
||||
{avatarUrl && !failed ? (
|
||||
{name === '-' ? null : avatarUrl && !failed ? (
|
||||
<img
|
||||
src={avatarUrl}
|
||||
alt=""
|
||||
|
||||
Reference in New Issue
Block a user