Skip to content

Commit

Permalink
fix bug in visual link re-attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
heswell committed Nov 21, 2024
1 parent 6ee691c commit 1d06c80
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ export class ServerProxy {
// Resend requests for links from other viewports already on page, they may be linkable to this viewport
Array.from(this.viewports.entries())
.filter(
([id, { disabled }]) => id !== serverViewportId && !disabled,
([id, { disabled, status }]) =>
id !== serverViewportId && !disabled && status === "subscribed",
)
.forEach(([vpId]) => {
this.sendMessageToServer({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {

import css from "./LinkedTableView.css";
import { TableLayoutToggleButton } from "./TableLayoutToggleButton";
import { Filter } from "@finos/vuu-filter-types";

const classBase = "vuuLinkedTableView";

Expand Down Expand Up @@ -47,10 +48,25 @@ export type LinkedDataSources = {

/**
* Displays a vertical 'tower' of Tables with a hierarchical relationship.
* Selection of row(s) on tables higher in the hierarchy drives the population
* of data in tables below. (could be two-way ?)
* Currently supported levels are:
* - tier 1 - parent table(s)
* - tier 2 - child table(s)
* -tier 3 (optional) - grandchild table(s)
*
* Selection of row(s) on tables higher in the hierarchy drives the display
* of data in tables below. Currently this is one-way, top-down only
*/
export interface LinkedTableViewProps extends HTMLAttributes<HTMLDivElement> {
/**
* Optional filter to allow externally controlled filter to be applied. This will
* be applied to tier 1 table(s).
* If applicable, it will also be applied to tier2/tier3 table(s) when no selection
* is in effect from parent table, 'If applicable' means if the filter column is
* available on tier 2/tier 3 tables).
* If a filter is provided and it cannot be applied - because
* column name of filter is not available in tier 1 table, an exception will be thrown.
*/
filter?: Filter;
linkedDataSources: LinkedDataSources;
}
const LinkedTables = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

.vuuSplitButton-cta {
--split-background: var(--background, var(--salt-actionable-accented-bold-background));
--split-background-active: var(--salt-actionable-accented-bold-background-active;
--split-background-active: var(--salt-actionable-accented-bold-background-active);
--split-color-active: var(--salt-actionable-bold-foreground-active);
}
.vuuSplitButton-cta:hover:not(.vuuSplitButton-disabled) {
Expand Down

0 comments on commit 1d06c80

Please sign in to comment.