mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 19:49:37 +02: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:
parent
e3ed429da1
commit
6c067bee31
18 changed files with 214 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue