Files
P42_UI/app/controllers/common/aboutController.js
T
2025-08-27 07:03:09 +00:00

56 lines
1.2 KiB
JavaScript

class aboutController extends EICController {
disclaimer(){
this.loadWindow('common/disclaimerView', {
title: 'Legal notice',
static: true,
expanded: true
});
}
support() {
this.loadWindow('common/support/SupportView', {
title: 'Technical support',
static: true,
expanded: true
},
{
models: { tickets: new SupportModel(["list", "create"]) }
});
}
helpdesk(){
this.loadWindow('common/HelpDeskView', {
title: 'Help Desk',
static: true,
expanded: true
});
}
guides(){
this.loadWindow('common/GuidesListView', {
title: 'Welcome Guides',
static: true,
expanded: true
},
{});
}
guide(params){
let guideMeta = app.Assets.Store.json.videoGuides.guides.find((item)=>item.id==params.params.guideID)
this.loadWindow('common/GuideView', {
title: guideMeta.title,
static: true,
expanded: true
},
{
guideMeta: guideMeta,
});
}
}
app.registerClass('aboutController', aboutController);