mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-31 16:39:37 +02:00
add 'order' flame label for docker integration (#9)
This commit is contained in:
parent
ccdb477ac4
commit
e07159e952
3 changed files with 5 additions and 4 deletions
|
@ -161,7 +161,7 @@ labels:
|
|||
- flame.url=https://example.com
|
||||
- flame.category=My category # Optional, default is "Docker"
|
||||
- flame.icon=icon-name # Optional, default is "docker"
|
||||
# - flame.icon=custom to make changes in app. ie: custom icon upload
|
||||
- flame.order=1 # Optional, default is 1
|
||||
```
|
||||
|
||||
And you must have activated the Docker sync option in the settings panel.
|
||||
|
|
|
@ -133,7 +133,8 @@ exports.getApps = asyncWrapper(async (req, res, next) => {
|
|||
name: labels['flame.name'],
|
||||
url: labels['flame.url'],
|
||||
icon: labels['flame.icon'] || 'docker',
|
||||
categoryId: dockerDefaultCategory.id
|
||||
categoryId: dockerDefaultCategory.id,
|
||||
orderId: labels['flame.order'] || 1,
|
||||
}
|
||||
if (labels['flame.category']) {
|
||||
const category = categories.find(category => category.name.toUpperCase() === labels['flame.category'].toUpperCase());
|
||||
|
|
|
@ -10,7 +10,7 @@ exports.dockerDefaultCategory = {
|
|||
name: "Docker",
|
||||
type: "apps",
|
||||
isPinned: true,
|
||||
orderId: 99,
|
||||
orderId: 999,
|
||||
};
|
||||
|
||||
// @desc Create new category
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue