Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1609 Rev 1610
Línea 101... Línea 101...
101
      .post(postUrl, currentFormData)
101
      .post(postUrl, currentFormData)
102
      .then((response) => {
102
      .then((response) => {
103
        const { data, success } = response.data
103
        const { data, success } = response.data
Línea 104... Línea 104...
104
 
104
 
-
 
105
        if (!success) {
105
        if (!success) {
106
          typeof data === 'string'
106
          if (data.description || data.file || data.share_width) {
107
            ? addNotification({ style: 'danger', msg: data })
107
            Object.entries(data).map(([key, value]) =>
108
            : Object.entries(data).map(([key, value]) =>
108
              setError(key, { type: 'required', message: value })
109
                setError(key, { type: 'required', message: value[0] })
109
            )
-
 
110
          } else {
-
 
111
            addNotification({ style: 'danger', msg: data })
-
 
112
          }
110
              )
113
          return
111
          return
Línea 114... Línea 112...
114
        }
112
        }
Línea 186... Línea 184...
186
        labelReject={labels.cancel}
184
        labelReject={labels.cancel}
187
        onClose={onClose}
185
        onClose={onClose}
188
        onAccept={onSubmit}
186
        onAccept={onSubmit}
189
      >
187
      >
190
        {feedType === feedTypes.DASHBOARD ? (
188
        {feedType === feedTypes.DASHBOARD ? (
-
 
189
          <select
-
 
190
            name='shared_with'
191
          <select name='shared_with' className='form-control' defaultValue='p'>
191
            className='form-control'
-
 
192
            defaultValue='p'
-
 
193
            ref={register}
-
 
194
          >
192
            <option value='p'>{labels.public}</option>
195
            <option value='p'>{labels.public}</option>
193
            <option value='c'>{labels.connections}</option>
196
            <option value='c'>{labels.connections}</option>
194
          </select>
197
          </select>
195
        ) : null}
198
        ) : null}