How to use the xadmin.go function in xadmin

To help you get started, we’ve selected a few xadmin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sshwsfc / xadmin / packages / xadmin-auth / src / mappers.js View on Github external
}).then(user => {
          dispatch({ type: '@@xadmin/AUTH_SIGN_IN', payload: _.omit(user, 'password') })
          app.go(query && query.redirect || '/app/')
        }).catch(error => {
          dispatch({ type: '@@xadmin/AUTH_SIGN_IN_ERROR', error })
github sshwsfc / xadmin / packages / xadmin-antd / src / model / relate.js View on Github external
        app.go(`/app/model/${model.name}/${item.id}/relations/${m.name}/`)}>{m.title || m.name}
      )}
github sshwsfc / xadmin / packages / xadmin-bootstrap / src / auth / components / SignUp.js View on Github external
          <div>{_t('Have account')}? <a href="#">app.go('/login')}&gt;{_t('please login')}</a></div>
github sshwsfc / xadmin / packages / xadmin-auth / src / mappers.js View on Github external
onChangePassword: () => () => {
        app.go('/app/change_password')
      }
    }
github sshwsfc / xadmin / packages / xadmin-auth / src / mappers.js View on Github external
}).then(user => {
          app.go('/app/')
        }).catch(error => {
          throw new SubmissionError({ old_password: _t('Incorrect old password') })
github sshwsfc / xadmin / packages / xadmin-bootstrap / src / auth / components / SignIn.js View on Github external
            { auth.can_signup &amp;&amp; (<div>{_t('Not registed')}? <a href="#">app.go('/signup')}&gt;{_t('please signup')}</a></div>) }
            { auth.can_reset_password &amp;&amp; (<div>{_t('Forgot password')}? <a href="#">app.go('/forget_password')}&gt;{_t('reset password')}</a></div>) }
github sshwsfc / xadmin / packages / xadmin-bootstrap / src / auth / components / SignIn.js View on Github external
            { auth.can_reset_password &amp;&amp; (<div>{_t('Forgot password')}? <a href="#">app.go('/forget_password')}&gt;{_t('reset password')}</a></div>) }
github sshwsfc / xadmin / packages / xadmin-bootstrap / src / model / relate.js View on Github external
            onSelect={()=&gt;app.go(`/app/model/${model.name}/${item.id}/relations/${m.name}/`)}&gt;{m.title || m.name})
        )}