From e07159e95216feec9046e0c8bb1c5b3a0575cf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Darveau?= Date: Sat, 7 Aug 2021 14:01:33 -0400 Subject: [PATCH] add 'order' flame label for docker integration (#9) --- README.md | 4 ++-- controllers/apps.js | 3 ++- controllers/category.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68cfbac..05ce2a9 100644 --- a/README.md +++ b/README.md @@ -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. @@ -218,4 +218,4 @@ And you must have activated the Kubernetes sync option in the settings panel. > This is an experimental feature. Its behaviour might change in the future. > -> Follow instructions from wiki: [Custom CSS](https://github.com/pawelmalak/flame/wiki/Custom-CSS) \ No newline at end of file +> Follow instructions from wiki: [Custom CSS](https://github.com/pawelmalak/flame/wiki/Custom-CSS) diff --git a/controllers/apps.js b/controllers/apps.js index ec7722b..993bb03 100644 --- a/controllers/apps.js +++ b/controllers/apps.js @@ -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()); diff --git a/controllers/category.js b/controllers/category.js index 060013f..67bde2c 100644 --- a/controllers/category.js +++ b/controllers/category.js @@ -10,7 +10,7 @@ exports.dockerDefaultCategory = { name: "Docker", type: "apps", isPinned: true, - orderId: 99, + orderId: 999, }; // @desc Create new category