mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-16 00:45:03 +02:00
add toggle resource visibility closes #442
This commit is contained in:
parent
fbd78ab842
commit
e7ca7fe89c
12 changed files with 121 additions and 16 deletions
|
@ -163,6 +163,8 @@ export class Config {
|
|||
|
||||
supporterHiddenUntil: number | null = null;
|
||||
|
||||
isDev: boolean = process.env.ENVIRONMENT !== "prod";
|
||||
|
||||
constructor() {
|
||||
this.loadConfig();
|
||||
}
|
||||
|
@ -245,7 +247,9 @@ export class Config {
|
|||
: "false";
|
||||
process.env.DASHBOARD_URL = parsedConfig.data.app.dashboard_url;
|
||||
|
||||
this.checkSupporterKey();
|
||||
if (!this.isDev) {
|
||||
this.checkSupporterKey();
|
||||
}
|
||||
|
||||
this.rawConfig = parsedConfig.data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue