Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 41a82611

Přidáno uživatelem Jaroslav Hrubý před asi 2 roky(ů)

Refactoring

Zobrazit rozdíly:

webapp/components/modals/UserDocumentsModal.tsx
41 41
        if (state === EState.InProgress) {
42 42
            color = 'orange';
43 43
            label = 'Rozpracováno';
44
            icon = <SyncOutlined spin />;
44
            icon = <SyncOutlined />;
45 45
        }
46 46
        return (
47 47
            <Tag icon={icon} color={color} key={label}>
webapp/pages/documents/admin/index.tsx
78 78
        setVisibleAssign(false);
79 79
    };
80 80

  
81
    const removeUserDocument = (userId: string, documentId: string) => {
82
        Swal.fire({
83
            title: 'Opravdu si přejete uživateli odebrat dokument?',
84
            showCancelButton: true,
85
            confirmButtonText: 'Odebrat',
86
        }).then((result) => {
87
            // TODO call API
88
        });
89
    };
90

  
91 81
    const columns = [
92 82
        {
93 83
            title: 'Název dokumentu',
......
125 115
                                >
126 116
                                    <FontAwesomeIcon
127 117
                                        icon={faUser}
128
                                        size={'2x'}
129
                                        onClick={() =>
130
                                            // @ts-ignore
131
                                            removeUserDocument(e.id, record.id)
132
                                        }
133 118
                                        title={e.username ?? ''}
134 119
                                        className={'me-2'}
135 120
                                    />
webapp/pages/documents/annotator/index.tsx
64 64
                if (state === 'IN_PROGRESS') {
65 65
                    color = 'orange';
66 66
                    label = 'Rozpracováno';
67
                    icon = <SyncOutlined spin />;
67
                    icon = <SyncOutlined />;
68 68
                }
69 69
                return (
70 70
                    <Tag icon={icon} color={color} key={label}>

Také k dispozici: Unified diff