diff --git a/src/app/enums/dataset.enum.ts b/src/app/enums/dataset.enum.ts index bfb2e99f205..c9cad1aaa1c 100644 --- a/src/app/enums/dataset.enum.ts +++ b/src/app/enums/dataset.enum.ts @@ -53,11 +53,13 @@ export const datasetSyncLabels = new Map([ export enum DatasetSnapdir { Visible = 'VISIBLE', Hidden = 'HIDDEN', + Disabled = 'DISABLED', } export const datasetSnapdirLabels = new Map([ [DatasetSnapdir.Visible, T('Visible')], [DatasetSnapdir.Hidden, T('Invisible')], + [DatasetSnapdir.Disabled, T('Disabled')], ]); export enum DatasetSnapdev { diff --git a/src/app/pages/datasets/components/dataset-form/sections/other-options-section/other-options-section.component.spec.ts b/src/app/pages/datasets/components/dataset-form/sections/other-options-section/other-options-section.component.spec.ts index 58d9542b96c..b2e91cffcd8 100644 --- a/src/app/pages/datasets/components/dataset-form/sections/other-options-section/other-options-section.component.spec.ts +++ b/src/app/pages/datasets/components/dataset-form/sections/other-options-section/other-options-section.component.spec.ts @@ -75,7 +75,7 @@ describe('OtherOptionsSectionComponent', () => { source: ZfsPropertySource.Inherited, }, snapdir: { - value: DatasetSnapdir.Visible, + value: DatasetSnapdir.Disabled, source: ZfsPropertySource.Inherited, }, snapdev: { @@ -235,6 +235,10 @@ describe('OtherOptionsSectionComponent', () => { parent: parentDataset, }); + await form.fillForm({ + 'Snapshot Directory': 'Visible', + }); + expect(await form.getValues()).toEqual({ Comments: '', 'Compression Level': 'LZJB', @@ -273,7 +277,7 @@ describe('OtherOptionsSectionComponent', () => { readonly: OnOff.Off, recordsize: inherit, snapdev: DatasetSnapdev.Hidden, - snapdir: DatasetSnapdir.Visible, + snapdir: DatasetSnapdir.Disabled, special_small_block_size: inherit, aclmode: AclMode.Discard, acltype: DatasetAclType.Posix,