Skip to content

Issue 5525/implement split btn for resource#5563

Open
vushu wants to merge 2 commits into
masterfrom
issue-5525/implement_split_btn_for_resource
Open

Issue 5525/implement split btn for resource#5563
vushu wants to merge 2 commits into
masterfrom
issue-5525/implement_split_btn_for_resource

Conversation

@vushu
Copy link
Copy Markdown
Contributor

@vushu vushu commented May 6, 2026

Added vm split to resource browser.

@vushu vushu requested a review from Tiggles May 6, 2026 10:03
const menuItems: VmActionItem[] = rest.map((childOp, idx) => ({
key: idx.toString(),
value: getText(childOp),
icon: childOp.icon,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

childOp.icon needs a fallback value here, otherwise is a compilation error.

target.innerHTML = "";
for (const op of operations) {
target.append(renderOperation(op));
if (op.buttonStyle === "split") {
Copy link
Copy Markdown
Contributor

@Tiggles Tiggles May 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buttonStyle exists for OperationGroup and not Operation, so this check can fix this:

Suggested change
if (op.buttonStyle === "split") {
if ("buttonStyle" in op && op.buttonStyle === "split") {

@Tiggles
Copy link
Copy Markdown
Contributor

Tiggles commented May 18, 2026

The right side of the splitButton should be the same color as the left, and the icon color in the dropdown should use the same color scheme in the filters, that take light/dark theme into account.
Screenshot 2026-05-18 at 10 07 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants