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:
@@ -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')},
|
||||
|
Reference in New Issue
Block a user