mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 01:13:11 +08:00
Option to open links in the same tab. Api upload icon. Render image icon instead of MDI. Dockerfile client dependencies fix.
This commit is contained in:
@@ -14,11 +14,18 @@ exports.createApp = asyncWrapper(async (req, res, next) => {
|
||||
});
|
||||
|
||||
let app;
|
||||
let _body = { ...req.body };
|
||||
|
||||
if (req.file) {
|
||||
console.log(req.file.filename)
|
||||
_body.icon = req.file.filename;
|
||||
}
|
||||
|
||||
|
||||
if (pinApps) {
|
||||
if (parseInt(pinApps.value)) {
|
||||
app = await App.create({
|
||||
...req.body,
|
||||
..._body,
|
||||
isPinned: true
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user