Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1979 Rev 2250
Línea 45... Línea 45...
45
    handleSubmit,
45
    handleSubmit,
46
    setValue,
46
    setValue,
47
    getValues,
47
    getValues,
48
    clearErrors,
48
    clearErrors,
49
    setError,
49
    setError,
50
    watch,
50
    watch
51
    reset
-
 
52
  } = useForm({
51
  } = useForm({
53
    defaultValues: {
52
    defaultValues: {
54
      description: '',
53
      description: '',
55
      share_width: 'p'
54
      share_width: 'p'
56
    }
55
    }
Línea 113... Línea 112...
113
 
112
 
114
        addNotification({
113
        addNotification({
115
          style: 'success',
114
          style: 'success',
116
          msg: 'La publicación ha sido compartida'
115
          msg: 'La publicación ha sido compartida'
117
        })
116
        })
118
        reset()
117
 
Línea 119... Línea 118...
119
        onClose()
118
        onClose()
120
 
119
 
121
        if (feedSharedId) {
120
        if (feedSharedId) {
122
          addFeed(newFeed, feedSharedId)
121
          addFeed(newFeed, feedSharedId)
123
        } else {
122
        } else {
-
 
123
          addFeed(newFeed)
-
 
124
        }
-
 
125
 
124
          addFeed(newFeed)
126
        setValue('description', '')
125
        }
127
        setValue('file', '')
126
      })
128
      })
127
      .catch((error) => {
129
      .catch((error) => {
128
        console.log(error)
130
        console.log(error)