Feature/about screen add option to check for and trigger updates (#485)

* [VersionMapping] Require server version "r1436" for preview

* Move ts util types to new type file

* Add buttons for updating server and webUI
This commit is contained in:
schroda
2023-12-09 23:08:27 +01:00
committed by GitHub
parent 2caf88ce51
commit 78310496aa
13 changed files with 389 additions and 39 deletions

View File

@@ -119,6 +119,10 @@ export const WebUISettings = () => {
setting: Setting,
value: WebUISettingsType[Setting],
) => {
if (setting === 'webUIChannel') {
requestManager.graphQLClient.client.cache.evict({ fieldName: 'checkForWebUIUpdate' });
}
mutateSettings({ variables: { input: { settings: { [setting]: value } } } });
};