giantmonkey / gomus-components-doc

https://giantmonkey.github.io/gomus-components-doc/
1 stars 0 forks source link

Docs: UserToolbarComponent #11

Closed Markus-MfN closed 6 years ago

Markus-MfN commented 6 years ago

Related page: UserToolbarComponent

I have separate pages for Login and Registration. How can I configure different URLs for the login and the register button?

douglasward commented 6 years ago

The easiest way is to define a custom template.

<go-user-toolbar options='{"action": {"mode": "none"}}'>
    <ng-template>
      <a href="#" go-user-toolbar-login>Anmelden</a>
      <a href="#" go-user-toolbar-register>Registrieren</a>
      <a href="#" go-user-toolbar-profile>Mein Profil</a>
      <button go-user-toolbar-logout>Abmelden</button>
    </ng-template>
  </go-user-toolbar>

If you need us to extend the actions configuration to support this then please let us know.

Markus-MfN commented 6 years ago

Thank you, this should do for now. But I think it would be more consistent to have this in the actions configuration.

douglasward commented 6 years ago

@maxseeger please take this into account for our backlog.