Allow specifying the user list when opening a StatsViewer
This commit is contained in:
parent
b96c64875d
commit
7ac0e75b29
1 changed files with 10 additions and 0 deletions
|
|
@ -47,6 +47,14 @@ export class StatsViewer extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
};
|
};
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
|
constructor({ users, ...opts } = {}) {
|
||||||
|
super(opts);
|
||||||
|
|
||||||
|
if (users != null) {
|
||||||
|
this._selectedUsers = users;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
get activeTableID() {
|
get activeTableID() {
|
||||||
if (this._selectedSubtable) {
|
if (this._selectedSubtable) {
|
||||||
return `${this._selectedTable}/${this._selectedSubtable}`;
|
return `${this._selectedTable}/${this._selectedSubtable}`;
|
||||||
|
|
@ -212,6 +220,8 @@ export class StatsViewer extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||||
this._graphData = {
|
this._graphData = {
|
||||||
type: table.graphType,
|
type: table.graphType,
|
||||||
options: {
|
options: {
|
||||||
|
// this must be true because it won't downsize the graph when false
|
||||||
|
maintainAspectRatio: true,
|
||||||
animation: false,
|
animation: false,
|
||||||
scales: {
|
scales: {
|
||||||
y: {
|
y: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue