Skip to content

Commit

Permalink
fix(ui): fix sorting on all (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Apr 21, 2022
1 parent 5064ab5 commit 922170b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/ui/src/view/AllPackages.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
xmlns:core="sap.ui.core"
>
<Select id="selectSort" forceSelection="true" change=".onSortSelectChange" selectedKey="{settings>/selectKey}">
<core:Item key="downloads14" text="By downloads last 14 days" />
<core:Item key="downloads30" text="By downloads last 30 days" />
<core:Item key="downloadsCurrentFortnight" text="By downloads last 14 days" />
<core:Item key="downloadsCurrentMonth" text="By downloads last 30 days" />
<core:Item key="downloads365" text="By downloads last 365 days" />
<core:Item key="updatedAt" text="By date of last update" />
<core:Item key="createdAt" text="By date of creation" />
Expand All @@ -30,8 +30,8 @@
updatedAt="{= ${settings>/selectKey} === 'updatedAt' ? ${data>updatedAt} : undefined }"
createdAt="{= ${settings>/selectKey} === 'createdAt' ? ${data>createdAt} : undefined }"
addedToBoUI5="{= ${settings>/selectKey} === 'addedToBoUI5' ? ${data>addedToBoUI5} : undefined }"
downloads14="{= ${settings>/selectKey} === 'downloads14' ? ${data>downloadsCurrentFortnight} : -1 }"
downloads30="{= ${settings>/selectKey} === 'downloads30' ? ${data>downloadsCurrentMonth} : -1 }"
downloads14="{= ${settings>/selectKey} === 'downloadsCurrentFortnight' ? ${data>downloadsCurrentFortnight} : -1 }"
downloads30="{= ${settings>/selectKey} === 'downloadsCurrentMonth' ? ${data>downloadsCurrentMonth} : -1 }"
downloads365="{= ${settings>/selectKey} === 'downloads365' ? ${data>downloads365} : -1 }"
/>
</CustomListItem>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/view/Object.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</layout:VerticalLayout>
<layout:VerticalLayout>
<tnt:InfoLabel id="downloads365" text="Downloads last 365 days {data>downloads365}" renderMode="Loose" colorScheme="5" visible="{= ${data>downloads365} >= 0}" />
<tnt:InfoLabel id="downloads30" text="Downloads last 30 days {data>downloads30}" renderMode="Loose" colorScheme="5" visible="{= ${data>downloads30} >= 0}" />
<tnt:InfoLabel id="downloads30" text="Downloads last 30 days {data>downloadsCurrentMonth}" renderMode="Loose" colorScheme="5" visible="{= ${data>downloadsCurrentMonth} >= 0}" />
<tnt:InfoLabel id="version" text=" Version {data>version}" renderMode="Loose" colorScheme="3" visible="{= !!${data>version}}" />
</layout:VerticalLayout>
<layout:VerticalLayout>
Expand Down

0 comments on commit 922170b

Please sign in to comment.