Skip to content

Commit

Permalink
Merge branch 'feat/traefik-first-run' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Jul 24, 2024
2 parents b8cf4cf + c8f4904 commit 51421b5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/rancher-desktop/pages/FirstRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
:is-locked="kubernetesLocked"
@input="handleDisableKubernetesCheckbox"
/>
<rd-checkbox
label="Enable Traefik"
:value="settings.kubernetes.options.traefik"
:is-locked="kubernetesLocked"
@input="handleDisableTraefikCheckbox"
/>
<rd-fieldset
:legend-text="t('firstRun.kubernetesVersion.legend') + offlineCheck()"
>
Expand Down Expand Up @@ -171,6 +177,7 @@ export default Vue.extend({
ipcRenderer.on('settings-update', (event, config) => {
this.settings.containerEngine.name = config.containerEngine.name;
this.settings.kubernetes.enabled = config.kubernetes.enabled;
this.settings.kubernetes.options.traefik = config.kubernetes.options.traefik;
});
ipcRenderer.send('k8s-versions');
if (this.pathManagementRelevant) {
Expand Down Expand Up @@ -219,6 +226,16 @@ export default Vue.extend({
console.log('invoke settings-write failed: ', err);
}
},
handleDisableTraefikCheckbox(value: boolean) {
try {
ipcRenderer.invoke(
'settings-write',
{ kubernetes: { options: { traefik: value } } },
);
} catch (err) {
console.log('invoke settings-write failed: ', err);
}
},
/**
* Get the display name of a given version.
* @param version The version to format.
Expand Down

0 comments on commit 51421b5

Please sign in to comment.