diff --git a/README.md b/README.md index e30e701..884c1ef 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.order=1 # Optional, default is 1; lower number is first in the list + - flame.order=1 # Optional, default is 500; lower number is first in the list ``` And you must have activated the Docker sync option in the settings panel. @@ -211,7 +211,7 @@ metadata: - flame.pawelmalak/url=https://example.com - flame.pawelmalak/category=My category # Optional, default is "Kubernetes" - flame.pawelmalak/icon=icon-name # Optional, default is "kubernetes" - - flame.pawelmalak/order=1 # Optional, default is 1; lower number is first in the list + - flame.pawelmalak/order=1 # Optional, default is 500; lower number is first in the list ``` And you must have activated the Kubernetes sync option in the settings panel. diff --git a/controllers/apps.js b/controllers/apps.js index bd4f87a..2f24c1b 100644 --- a/controllers/apps.js +++ b/controllers/apps.js @@ -223,7 +223,7 @@ async function retrieveDockerApps(apps, orderType, unpinStoppedApps) { url: urls[i] || urls[0], icon: icons[i] || 'docker', category: category.id, - orderId: orders[i] || 1, + orderId: orders[i] || 500, }); } } @@ -288,27 +288,14 @@ async function retrieveKubernetesApps(apps, orderType, unpinStoppedApps) { for (let i = 0; i < names.length; i++) { const category = categoriesLabels[i] ? categories.find(category => category.name.toUpperCase() === categoriesLabels[i].toUpperCase()) : dockerDefaultCategory; - dockerApps.push({ + kubernetesApps.push({ name: names[i] || names[0], url: urls[i] || urls[0], icon: icons[i] || 'docker', category: category.id, - orderId: orders[i] || 1, + orderId: orders[i] || 500, }); } - - const app = { - name: annotations['flame.pawelmalak/name'], - url: annotations['flame.pawelmalak/url'], - icon: annotations['flame.pawelmalak/icon'] || 'kubernetes', - categoryId: kubernetesDefaultCategory.id, - orderId: annotations['flame.pawelmalak/order'] || 1, - }; - if (annotations['flame.pawelmalak/category']) { - const category = categories.find(category => category.name.toUpperCase() === annotations['flame.pawelmalak/category'].toUpperCase()); - app.categoryId = category ? category.id : dockerDefaultCategory.id; - } - kubernetesApps.push(app); } }