Make showing of rangeBox based on parameter
This commit is contained in:
parent
5d117cf1a0
commit
ebc1a86b2e
@ -13,6 +13,7 @@
|
||||
|
||||
export let search: string;
|
||||
export let days: number;
|
||||
export let withRangeBox: boolean;
|
||||
|
||||
let sourceData: pb.BackendProto.GraphsOut | null = null;
|
||||
|
||||
@ -95,7 +96,8 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="range-box">
|
||||
{#if withRangeBox}
|
||||
<div class="range-box">
|
||||
<div class="spin {refreshing ? 'active' : ''}">◐</div>
|
||||
|
||||
<div class="range-box-inner">
|
||||
@ -131,8 +133,9 @@
|
||||
{all}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-box-pad" />
|
||||
</div>
|
||||
<div class="range-box-pad" />
|
||||
{/if}
|
||||
|
||||
<div tabindex="-1" class="no-focus-outline">
|
||||
{#if sourceData}
|
||||
|
@ -21,6 +21,7 @@ export function graphs(
|
||||
graphs: any[], {
|
||||
search = "deck:current",
|
||||
days = 31,
|
||||
withRangeBox = true,
|
||||
} = {},
|
||||
): void {
|
||||
const nightMode = checkNightMode();
|
||||
@ -34,6 +35,7 @@ export function graphs(
|
||||
nightMode,
|
||||
search,
|
||||
days,
|
||||
withRangeBox,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user