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

New Field Label in CardDetails #3193

Closed
albertomna opened this issue Jul 15, 2021 · 1 comment
Closed

New Field Label in CardDetails #3193

albertomna opened this issue Jul 15, 2021 · 1 comment
Labels

Comments

@albertomna
Copy link

albertomna commented Jul 15, 2021

Hey Guys, really really thanks for this BEAUTIFUL application, is extremly useful! So, i have a little request for my personal use. I am not a developer but i see the codes and sometimes i can understand something :)
I have add a field, in CardSideBarDetails.vue because i need another labels field (i need the same labels, not one different database).
In this new field, i must seen only the last labels added in board (example: labels.id >80).
I cannot understand the right synthax for this trouble, i think isn't hard but i cannot understand.

Describe the solution you'd like
Nothing new but i have copied another section wrapper under 'Tags':

<div class="section-wrapper">
    <div v-tooltip="t('deck', 'AnotherField')" class="section-label icon-tag">
        <span class="hidden-visually">{{ t('deck', 'AnotherField') }}</span>
    </div>
    <div class="section-details">
        <Multiselect v-model="assignedLabels"
            :multiple="true"
            :disabled="!isCurrentUserAssigned && !isAdmin"
            :options="labelsSorted"
            :placeholder="t('deck', 'ThisisAnotherField')"
            :taggable="true"
            label="title"
            track-by="id"
            @select="addLabelToCard"
            @remove="removeLabelFromCard">
            <template #option="scope">
                <div :style="{ backgroundColor: '#' + scope.option.color, color: textColor(scope.option.color)}" class="tag">
                    {{ scope.option.title }}
                </div>
            </template>
            <template #tag="scope">
                <div :style="{ backgroundColor: '#' + scope.option.color, color: textColor(scope.option.color)}" class="tag">
                    {{ scope.option.title }}
                </div>
            </template>
        </Multiselect>
    </div>
</div>

If someone can help me i am very gratefully, thanks again for this plugin!

@stefan-niedermann
Copy link
Member

Hello @albertomna 👋

User defined fields are not yet supported by the Deck app (see #1833).

I strongly recommend you to not patch the code of the Deck app this way, especially due to the fact that you are not a developer. You will need to patch your adjustments after each and every release of the Deck app again, manually, carefully.

Also you might see some changes on the user interface, you are missing the complete storage infrastructure for the new field - database, API and everything between. This won't work, even if you can see something in your browser, it is way more complex.

The GitHub issues are not used for providing customizing support but for bug reports and feature requests. For questions i recommend you to ask in the Deck category of the Nextcloud help forum (but to be honest there is not that much developer activity) or even better: ask for a freelancer to implement #1833 so everyone benefits 😉 🚀. If you are paying for a Nextcloud enterprise subscription, i believe you have better chances to get support and features implemented directly by the Nextcloud core developer team (which i do not belong to by the way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants