소스 검색

Merge pull request #109 from pa-sowa/docker-user-icon-fix

Don't override user selected icon of a docker app
pawelmalak 3 년 전
부모
커밋
6f8a017bfb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      controllers/apps.js

+ 1 - 1
controllers/apps.js

@@ -131,7 +131,7 @@ exports.getApps = asyncWrapper(async (req, res, next) => {
         if (apps.some((app) => app.name === item.name)) {
           const app = apps.filter((e) => e.name === item.name)[0];
 
-          if (item.icon === 'custom') {
+          if (item.icon === 'custom' || (item.icon === 'docker' && app.icon != 'docker')) {
             await app.update({
               name: item.name,
               url: item.url,