From 62c87fb4e4bf5a0daf6f660f740619e0b4dbbc3e Mon Sep 17 00:00:00 2001 From: Alexandre Alves Date: Fri, 12 Jul 2024 12:22:21 +0100 Subject: [PATCH 1/2] working on managed os channel automatic deletion --- ...ntal.cattle.io.managedosversionchannel.vue | 26 ++++++++++++++++--- pkg/elemental/l10n/en-us.yaml | 1 + 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue b/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue index bb1fb73..2ec0fba 100644 --- a/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue +++ b/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue @@ -4,11 +4,16 @@ import CruResource from '@shell/components/CruResource.vue'; import CreateEditView from '@shell/mixins/create-edit-view'; import { LabeledInput } from '@components/Form/LabeledInput'; import NameNsDescription from '@shell/components/form/NameNsDescription'; +import Checkbox from '@components/Form/Checkbox/Checkbox.vue'; export default { name: 'ManagedOsVersionChannelEditView', components: { - Loading, LabeledInput, CruResource, NameNsDescription + Loading, + LabeledInput, + CruResource, + NameNsDescription, + Checkbox }, mixins: [CreateEditView], props: { @@ -20,7 +25,14 @@ export default { type: String, required: true } - } + }, + computed: { + name() { + console.log('this.value', this.value); + + return 'some-text'; + } + }, }; @@ -44,8 +56,9 @@ export default {
-
+

{{ t('elemental.osversionchannels.create.spec') }}

+ {{ name }} +
diff --git a/pkg/elemental/l10n/en-us.yaml b/pkg/elemental/l10n/en-us.yaml index b61184d..faad6d2 100644 --- a/pkg/elemental/l10n/en-us.yaml +++ b/pkg/elemental/l10n/en-us.yaml @@ -196,6 +196,7 @@ elemental: create: configuration: Configuration spec: Spec + automaticDelete: Automatically delete deprecated OS versions that are no longer included in the channel registryUri: label: Image registry path placeholder: Enter an image registry path \ No newline at end of file From 93e9d16db209dbb8f158d00c5524ea3319b301dc Mon Sep 17 00:00:00 2001 From: Alexandre Alves Date: Tue, 6 Aug 2024 12:06:14 +0100 Subject: [PATCH 2/2] pr cleanup --- .../elemental.cattle.io.managedosversionchannel.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue b/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue index 2ec0fba..4ac7773 100644 --- a/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue +++ b/pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue @@ -25,14 +25,7 @@ export default { type: String, required: true } - }, - computed: { - name() { - console.log('this.value', this.value); - - return 'some-text'; - } - }, + } }; @@ -58,7 +51,6 @@ export default {

{{ t('elemental.osversionchannels.create.spec') }}

- {{ name }}