sliftutils 0.67.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/render-utils/Anchor.tsx
CHANGED
|
@@ -9,6 +9,9 @@ export class Anchor extends preact.Component<{
|
|
|
9
9
|
} & Omit<preact.JSX.HTMLAttributes<HTMLAnchorElement>, "href">> {
|
|
10
10
|
render() {
|
|
11
11
|
const { params, button, className, ...remaining } = this.props;
|
|
12
|
+
if (params.length === 0) {
|
|
13
|
+
return <span {...remaining}>{this.props.children}</span>;
|
|
14
|
+
}
|
|
12
15
|
let resolvedParams = params.map(getResolvedParam);
|
|
13
16
|
let searchObj = new URLSearchParams(window.location.search);
|
|
14
17
|
let selected = resolvedParams.every(([param, value], index) => {
|
|
@@ -278,6 +278,7 @@ export class TransactionStorage implements IStorage<Buffer> {
|
|
|
278
278
|
|
|
279
279
|
await fileLockSection(async () => {
|
|
280
280
|
if (!await anyChanges()) return;
|
|
281
|
+
console.log(`Found new changes in collection from other tab. Loading them now. ${this.debugName}`);
|
|
281
282
|
await this.loadAllTransactions();
|
|
282
283
|
});
|
|
283
284
|
}
|