2017-08-22 10:53:26 +03:00
|
|
|
import Controller from '@ember/controller';
|
2018-01-09 17:23:36 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2015-10-28 14:36:45 +03:00
|
|
|
|
2022-01-14 16:27:32 +03:00
|
|
|
export default class WhatsNewController extends Controller {
|
|
|
|
@service config;
|
|
|
|
@service upgradeStatus;
|
|
|
|
@service whatsNew;
|
2021-09-08 15:00:24 +03:00
|
|
|
|
2022-01-14 16:27:32 +03:00
|
|
|
queryParams = ['entry'];
|
2016-01-23 20:14:12 +03:00
|
|
|
|
2022-01-14 16:27:32 +03:00
|
|
|
get copyrightYear() {
|
|
|
|
const date = new Date();
|
2016-01-23 20:14:12 +03:00
|
|
|
return date.getFullYear();
|
2022-01-14 16:27:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
get showDatabaseWarning() {
|
|
|
|
const isProduction = !!this.config.get('environment').match?.(/production/i);
|
|
|
|
const isPro = !!this.config.get('hostSettings')?.siteId;
|
|
|
|
|
|
|
|
if (isProduction && !isPro) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|