Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update router to Interia #149

Open
inventionate opened this issue Apr 27, 2022 · 2 comments
Open

Update router to Interia #149

inventionate opened this issue Apr 27, 2022 · 2 comments
Labels
feature request New feature or request help wanted Extra attention is needed

Comments

@inventionate
Copy link

First of all, thank you for the wonderful package!

When updating to Nova 4 I saw that the router code has not yet been updated in this package. Nova 4 uses Inerta and therefore instead of . Unfortunately, it is therefore also no longer possible to put a link in a custom detail field. For this the resourceName prop is needed. Here exemplary the code, which I would like to use:

<template>
  <ul class="" v-if="values">
      <li class="" v-for="(value, i) of values" :key="i">
        <Link
            :href="$url(`/resources/${resourceName}/${Array.isArray(field.value) ? field.value[i]
: field.value.replace(/[\[\]']+/g,'')}`)"
            class="link-default"
        >
            {{ value }}
        </Link>
      </li>
  </ul>

  <div v-else>—</div>
</template>

So my question if it would be possible to update the source code and make routerName accessible as prop in NovaMultiselectDetailFieldValue component? Thanks in advance!

@inventionate
Copy link
Author

Sorry, I've seen that partial implementation has already taken place. Thank you very much. Unfortunately, the index view is still missing. Also, I would like to get links of the belongsToMany entries. Is this implementation planned?

@Tarpsvo Tarpsvo added the feature request New feature or request label Jul 20, 2022
@Tarpsvo
Copy link
Collaborator

Tarpsvo commented Jun 30, 2023

BelongsTo links are working as intended, BelongsToMany is waiting for a PR. ;)

@Tarpsvo Tarpsvo added the help wanted Extra attention is needed label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants