Skip to content

Commit

Permalink
mgr/dashboard: remove NFSv3 support from dashboard
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/49718
Related to: #40154

Signed-off-by: Volker Theile <vtheile@suse.com>
  • Loading branch information
votdev committed Apr 29, 2021
1 parent defea70 commit 8d83180
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Expand Up @@ -322,7 +322,8 @@
class="custom-control-input"
id="protocolNfsv3"
name="protocolNfsv3"
formControlName="protocolNfsv3">
formControlName="protocolNfsv3"
disabled>
<label i18n
class="custom-control-label"
for="protocolNfsv3">NFSv3</label>
Expand All @@ -332,7 +333,8 @@
class="custom-control-input"
formControlName="protocolNfsv4"
name="protocolNfsv4"
id="protocolNfsv4">
id="protocolNfsv4"
disabled>
<label i18n
class="custom-control-label"
for="protocolNfsv4">NFSv4</label>
Expand Down
Expand Up @@ -98,7 +98,7 @@ describe('NfsFormComponent', () => {
daemons: [],
fsal: { fs_name: 'a', name: '', rgw_user_id: '', user_id: '' },
path: '',
protocolNfsv3: true,
protocolNfsv3: false,
protocolNfsv4: true,
pseudo: '',
sec_label_xattr: 'security.selinux',
Expand Down
Expand Up @@ -174,7 +174,7 @@ export class NfsFormComponent extends CdForm implements OnInit {
})
}),
path: new FormControl(''),
protocolNfsv3: new FormControl(true, {
protocolNfsv3: new FormControl(false, {
validators: [
CdValidators.requiredIf({ protocolNfsv4: false }, (value: boolean) => {
return !value;
Expand Down

0 comments on commit 8d83180

Please sign in to comment.