Skip to content

Commit c4f50c6

Browse files
committed
Restore expand/collapse actions
1 parent 24793cc commit c4f50c6

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎lhc_web/design/defaulttheme/js/svelte/public/build/main.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lhc_web/design/defaulttheme/js/svelte/public/build/main.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lhc_web/design/defaulttheme/js/svelte/src/Widgets/Parts/WidgetBodyPending.svelte‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<thead>
7474
{#if type === 'online_op'}
7575
<tr>
76-
{#each $lhcList[type].cl as column}
76+
{#each $lhcList[type].cl as column, columnIndex}
7777
<th width={column == 'last_assignment' ? '5%' : (column == 'capacity' ? '15%' : (column == 'department' ? '20%' : (column == 'name' ? '36%' : 'none')))}>
7878
{#if column === 'name'}
7979
<a on:click={(e) => lhcServices.toggleWidgetSort(lhcList,sort_identifier,'onn_dsc','onn_asc',true)} title={$t("widget.sort_by_online_name")}>
@@ -109,6 +109,18 @@
109109
{:else if column === 'offline_since'}
110110
<i title="Session duration" class:text-danger={$lhcList.hideOnline} class:text-success={!$lhcList.hideOnline} class="material-icons">schedule</i>
111111
{/if}
112+
113+
{#if no_expand === false && columnIndex === $lhcList[type].cl.length - 1}
114+
<div class="float-end expand-actions">
115+
<a on:click={(e) => lhcServices.changeWidgetHeight(lhcList,panel_id,true)} class="text-muted disable-select">
116+
<i title={$t("widget.more_rows")} class="material-icons">expand</i>
117+
</a>
118+
<a on:click={(e) => lhcServices.changeWidgetHeight(lhcList,panel_id,false)} class="text-muted disable-select">
119+
<i title={$t("widget.less_rows")} class="material-icons">compress</i>
120+
</a>
121+
</div>
122+
{/if}
123+
112124
</th>
113125
{/each}
114126
</tr>

0 commit comments

Comments
 (0)