bugfix
This commit is contained in:
@@ -41,7 +41,6 @@
|
||||
"height": "600px"
|
||||
},
|
||||
"icon": "app.png",
|
||||
"license": "rbac",
|
||||
"permissions": [
|
||||
{
|
||||
"scope": "SYSTEM",
|
||||
|
||||
@@ -18,20 +18,20 @@ module.exports = {
|
||||
|
||||
|
||||
app.post('/api/open_app', (req, res) => {
|
||||
const { name, view, viewLabel, location, size, state, zIndex } = req.body;
|
||||
const { name, view, viewLabel, location, size, state, zIndex } = req.body;
|
||||
|
||||
const pluginPath = path.join(global.path.plugins, name, 'plugin.json');
|
||||
const pluginPath = path.join(global.path.plugins, name, 'plugin.json');
|
||||
|
||||
let context = fs.existsSync(pluginPath)
|
||||
? service.get('fileSystemManager').loadJSON(pluginPath)
|
||||
: (JSON.parse(JSON.stringify(global.json.startMenuItems.live))).find(item => item.name == name);
|
||||
let context = fs.existsSync(pluginPath)
|
||||
? service.get('fileSystemManager').loadJSON(pluginPath)
|
||||
: (JSON.parse(JSON.stringify(global.json.startMenuItems.live))).find(item => item.name == name);
|
||||
|
||||
context.defaultSize =
|
||||
context.menu.items.find(item => item.label == viewLabel)?.defaultSize ||
|
||||
{ width: 800, height: 600 };
|
||||
context.defaultSize =
|
||||
context.menu.items.find(item => item.label == viewLabel)?.defaultSize ||
|
||||
{ width: 800, height: 600 };
|
||||
|
||||
delete context.config;
|
||||
res.json({ name, view, viewLabel, context, location, size, state, zIndex });
|
||||
delete context.config;
|
||||
res.json({ name, view, viewLabel, context, location, size, state, zIndex });
|
||||
});
|
||||
|
||||
|
||||
@@ -66,7 +66,9 @@ module.exports = {
|
||||
|
||||
|
||||
|
||||
|
||||
app.post('/window/Server/rbac', async (req, res) => {
|
||||
await renderWindow(app, 'rbac.hbs', { }, { }, res)
|
||||
});
|
||||
|
||||
app.post('/window/EventLog/eventlog', async (req, res) => {
|
||||
await renderWindow(app, 'eventlog.hbs', { }, { }, res)
|
||||
|
||||
Reference in New Issue
Block a user