-
Notifications
You must be signed in to change notification settings - Fork 91
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
enh: added option to render icon and text for breadcrumb #5216
enh: added option to render icon and text for breadcrumb #5216
Conversation
6788751
to
3fdda27
Compare
5d34577
to
f5a4076
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes have a logic flaw and lead to the name being always shown.
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
f5a4076
to
942ef16
Compare
@raimund-schluessler I agree with your requested changes. In order to simplify the logic, whilst not making any breaking changes, here are the logic design choices I made:
Does this align with your requested changes? |
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Your changes lead to the desired outcome, but they are quite a bit more complicated then they need to be (especially the duplication of |
e27c9d5
to
27b6bf5
Compare
Ah, I see what you mean. I saw this problem while developing and I like this solution, but I have a question. <NcButton v-if="(name || icon || $slots.icon) && !$slots.default"
|
Without icon, icon slot and default slot, we still show the name. But yes, if that is also empty, nothing will be shown, because nothing was provided. I don't think that is an issue. NcButton works the same. |
/backport to next |
For nextcloud/server#43604
🖼️ Screenshots
🏡 After
Summary
🏁 Checklist