1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

[share admin - links] mobile: modified display of some info; added 'sort' (#5263)

This commit is contained in:
llj
2022-10-22 10:38:47 +08:00
committed by GitHub
parent 9e3c3bc5ef
commit 90c0d5dbec
3 changed files with 69 additions and 30 deletions

View File

@@ -7,6 +7,7 @@ const propTypes = {
toggleDialog: PropTypes.func.isRequired,
sortBy: PropTypes.string.isRequired,
sortOrder: PropTypes.string.isRequired,
sortOptions: PropTypes.array,
sortItems: PropTypes.func.isRequired
};
@@ -14,7 +15,7 @@ class SortOptions extends React.Component {
constructor(props) {
super(props);
this.sortOptions = [
this.sortOptions = this.props.sortOptions || [
{value: 'name-asc', text: gettext('By name ascending')},
{value: 'name-desc', text: gettext('By name descending')},
{value: 'size-asc', text: gettext('By size ascending')},