Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 7796 | Rev 11166 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7796 Rev 7806
Línea 96... Línea 96...
96
                    closeModal();
96
                    closeModal();
97
                    dispatch(addNotification({
97
                    dispatch(addNotification({
98
                        style: "success",
98
                        style: "success",
99
                        msg: "La publicación ha sido compartida",
99
                        msg: "La publicación ha sido compartida",
100
                    }))
100
                    }))
101
                    
101
 
102
                    if (currentPage && timelineUrl) {
102
                    if (currentPage && timelineUrl) {
103
                        dispatch(fetchFeeds(timelineUrl, currentPage))
103
                        dispatch(fetchFeeds(timelineUrl, currentPage))
104
                    }
104
                    }
105
                    
105
 
106
                    if (feedSharedId) {
106
                    if (feedSharedId) {
107
                        return dispatch(addFeed(newFeed, feedSharedId));
107
                        return dispatch(addFeed(newFeed, feedSharedId));
108
                    }
108
                    }
109
                    
109
 
110
                    return dispatch(addFeed(newFeed));
110
                    return dispatch(addFeed(newFeed));
111
                }
111
                }
Línea 112... Línea 112...
112
 
112
 
Línea 135... Línea 135...
135
            <form encType="multipart/form-data" onSubmit={handleSubmit(onSubmit)}>
135
            <form encType="multipart/form-data" onSubmit={handleSubmit(onSubmit)}>
136
                <Modal.Header closeButton>
136
                <Modal.Header closeButton>
137
                    <Modal.Title>Compartir una publicación</Modal.Title>
137
                    <Modal.Title>Compartir una publicación</Modal.Title>
138
                </Modal.Header>
138
                </Modal.Header>
139
                <Modal.Body>
139
                <Modal.Body>
-
 
140
                    {loading
-
 
141
                        ?
-
 
142
                        <Spinner />
-
 
143
                        :
-
 
144
                        <>
140
                    <DescriptionInput
145
                            <DescriptionInput
141
                        name="description"
146
                                name="description"
142
                        setValue={setValue}
147
                                setValue={setValue}
143
                    />
148
                            />
144
                    {errors.description && <p>{errors.description.message}</p>}
149
                            {errors.description && <p>{errors.description.message}</p>}
145
                    {
150
                            {
146
                        modalType !== shareModalTypes.POST
151
                                modalType !== shareModalTypes.POST
147
                        &&
152
                                &&
148
                        <DropzoneComponent
153
                                <DropzoneComponent
149
                            modalType={modalType}
154
                                    modalType={modalType}
150
                            onUploaded={onUploadedHandler}
155
                                    onUploaded={onUploadedHandler}
151
                            settedFile={getValues("file")}
156
                                    settedFile={getValues("file")}
152
                            recomendationText={recomendationText[modalType]}
157
                                    recomendationText={recomendationText[modalType]}
-
 
158
                                />
-
 
159
                            }
-
 
160
                            {errors.file && <p>{errors.file.message}</p>}
153
                        />
161
                        </>
154
                    }
162
                    }
155
                    {errors.file && <p>{errors.file.message}</p>}
-
 
156
                </Modal.Body>
163
                </Modal.Body>
157
                <Modal.Footer>
164
                <Modal.Footer>
158
                    <Button
165
                    <Button
159
                        size="sm"
166
                        size="sm"
160
                        type="submit"
167
                        type="submit"
Línea 171... Línea 178...
171
                    >
178
                    >
172
                        Cancelar
179
                        Cancelar
173
                    </Button>
180
                    </Button>
174
                </Modal.Footer>
181
                </Modal.Footer>
175
            </form>
182
            </form>
176
            {loading
-
 
177
                &&
-
 
178
                <Spinner />
-
 
179
            }
-
 
180
        </Modal>
183
        </Modal>
181
    );
184
    );
182
};
185
};
Línea 183... Línea 186...
183
 
186
 
184
export default ShareModal
187
export default ShareModal