Specify direction type

This commit is contained in:
Vinicius Fortuna 2020-06-17 15:01:41 -04:00
parent 1ddad919a0
commit 69a00a1050
2 changed files with 5 additions and 1 deletions

View file

@ -679,7 +679,10 @@ export class ServerView extends DirMixin(PolymerElement) {
this.monthlyCost = 0;
this.selectedTab = 'connections';
this.accessKeySortBy = 'name';
/** The direction to sort: 1 == ascending, 0 == no sorting, -1 == descending */
/**
* The direction to sort: 1 == ascending, 0 == no sorting, -1 == descending
* @type {-1|0|1}
*/
this.accessKeySortDirection = 0;
/** @type {(msgId: string, ...params: string[]) => string} */
this.localize = null;

View file

@ -33,6 +33,7 @@ export class SortSpan extends LitElement {
constructor() {
super();
/** @type {-1|0|1} */
this.direction = 0;
}