diff --git a/package-lock.json b/package-lock.json index 0bd02367..42fabb78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "sharp": "0.31.3", "ts-exif-parser": "0.2.2", "ts-node-iptc": "1.0.11", - "typeconfig": "2.0.37", + "typeconfig": "2.0.38", "typeorm": "0.3.12", "xml2js": "0.4.23" }, @@ -15711,9 +15711,9 @@ } }, "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -21670,11 +21670,11 @@ } }, "node_modules/typeconfig": { - "version": "2.0.37", - "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.37.tgz", - "integrity": "sha512-IB45azVLIZH1Hzn+6jWTKiGef76MqYsAf2SgaqXd+rqaFLPEOkDS/OSp0fPSlOPO4vcSEYpsmd/AgaugpVDUmA==", + "version": "2.0.38", + "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.38.tgz", + "integrity": "sha512-yN9rRqJQ21xAYdR/1vhv4DPurOA7DNCN7zqPDPD6ZA2fLKcNTRa2flG/z2FaQE4UuBfnQ1o96c50xeNozDMbZQ==", "dependencies": { - "minimist": "1.2.7" + "minimist": "1.2.8" } }, "node_modules/typed-assert": { @@ -35144,9 +35144,9 @@ } }, "minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" }, "minipass": { "version": "3.1.6", @@ -39736,11 +39736,11 @@ } }, "typeconfig": { - "version": "2.0.37", - "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.37.tgz", - "integrity": "sha512-IB45azVLIZH1Hzn+6jWTKiGef76MqYsAf2SgaqXd+rqaFLPEOkDS/OSp0fPSlOPO4vcSEYpsmd/AgaugpVDUmA==", + "version": "2.0.38", + "resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.38.tgz", + "integrity": "sha512-yN9rRqJQ21xAYdR/1vhv4DPurOA7DNCN7zqPDPD6ZA2fLKcNTRa2flG/z2FaQE4UuBfnQ1o96c50xeNozDMbZQ==", "requires": { - "minimist": "1.2.7" + "minimist": "1.2.8" } }, "typed-assert": { diff --git a/package.json b/package.json index 02246378..c5051ca2 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "sharp": "0.31.3", "ts-exif-parser": "0.2.2", "ts-node-iptc": "1.0.11", - "typeconfig": "2.0.37", + "typeconfig": "2.0.38", "xml2js": "0.4.23", "typeorm": "0.3.12" }, diff --git a/src/backend/middlewares/admin/SettingsMWs.ts b/src/backend/middlewares/admin/SettingsMWs.ts index aa4728e3..2a8ef6a4 100644 --- a/src/backend/middlewares/admin/SettingsMWs.ts +++ b/src/backend/middlewares/admin/SettingsMWs.ts @@ -46,7 +46,7 @@ export class SettingsMWs { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore Config[settingsPath] = settings; - original.save(); + await original.save(); await ConfigDiagnostics.runDiagnostics(); Logger.info(LOG_TAG, 'new config:'); Logger.info(LOG_TAG, JSON.stringify(Config.toJSON({attachDescription: false}), null, '\t')); diff --git a/src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html b/src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html index 1ff5089c..595e5792 100644 --- a/src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html +++ b/src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.html @@ -187,6 +187,7 @@ placeholder="Name" [(ngModel)]="item.name" (ngModelChange)="onChange($event)" + [disabled]="state.readonly" [name]="'link_n_'+idName+i" [id]="'link_n_'+idName+i" required> @@ -194,6 +195,7 @@