1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-02 17:35:17 +02:00

add 'order' flame label for docker integration (#9)

This commit is contained in:
François Darveau 2021-08-07 14:01:33 -04:00 committed by François Darveau
parent ccdb477ac4
commit e07159e952
3 changed files with 5 additions and 4 deletions

View file

@ -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());

View file

@ -10,7 +10,7 @@ exports.dockerDefaultCategory = {
name: "Docker",
type: "apps",
isPinned: true,
orderId: 99,
orderId: 999,
};
// @desc Create new category