Unverified Commit 0af12de1 authored by Boris Vasilenko's avatar Boris Vasilenko Committed by GitHub
Browse files

NAS-123110 / 23.10 / NFS 'Add SPN' option should be presented after 'Require...

NAS-123110 / 23.10 / NFS 'Add SPN' option should be presented after 'Require Kerberos' is in DB (#8485)
parent c82d0f04
Showing with 36 additions and 1 deletion
+36 -1
......@@ -106,13 +106,19 @@
{{ 'Cancel' | translate }}
</button>
</div>
<div>
<div class="add-spn-container">
<ix-tooltip
*ngIf="isAddSpnVisible && isAddSpnDisabled"
[header]="'Add SPN' | translate"
[message]="'Save the \'Require Kerberos for NFSv4\' value before adding SMP' | translate"
></ix-tooltip>
<button
*ngIf="isAddSpnVisible"
mat-button
type="button"
color="primary"
ixTest="add-spn"
[disabled]="isAddSpnDisabled"
(click)="addSpn()"
>
{{ 'Add SPN' | translate }}
......
......@@ -25,3 +25,12 @@
margin-right: auto;
max-width: 960px;
}
.add-spn-container {
display: flex;
gap: 10px;
::ng-deep ix-icon {
font-size: 25px !important;
}
}
......@@ -28,6 +28,7 @@ import { WebSocketService } from 'app/services/ws.service';
})
export class ServiceNfsComponent implements OnInit {
isFormLoading = false;
isAddSpnDisabled = true;
hasNfsStatus: boolean;
adHealth: DirectoryServiceState;
......@@ -107,6 +108,7 @@ export class ServiceNfsComponent implements OnInit {
.pipe(untilDestroyed(this))
.subscribe({
next: (config) => {
this.isAddSpnDisabled = !config.v4_krb;
this.form.patchValue(config);
this.snackbar.success(this.translate.instant('Service configuration saved'));
this.isFormLoading = false;
......
......@@ -20,6 +20,7 @@ import { IxIconModule } from 'app/modules/ix-icon/ix-icon.module';
import { IxTableModule } from 'app/modules/ix-tables/ix-table.module';
import { LayoutModule } from 'app/modules/layout/layout.module';
import { TestIdModule } from 'app/modules/test-id/test-id.module';
import { TooltipModule } from 'app/modules/tooltip/tooltip.module';
import { ServiceFtpComponent } from 'app/pages/services/components/service-ftp/service-ftp.component';
import { ServiceLldpComponent } from 'app/pages/services/components/service-lldp/service-lldp.component';
import { AddSpnDialogComponent } from 'app/pages/services/components/service-nfs/add-spn-dialog/add-spn-dialog.component';
......@@ -56,6 +57,7 @@ import { routing } from './services.routing';
AppCommonModule,
LayoutModule,
MatDialogModule,
TooltipModule,
TestIdModule,
],
declarations: [
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2556,6 +2556,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2036,6 +2036,7 @@
"Save As Preset": "",
"Save Selection": "",
"Save current ACL entries as a preset for future use.": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Scan This QR Code": "",
"Scan this QR Code with your authenticator app of choice. The next time you try to login, you will be asked to enter an One Time Password (OTP) from your authenticator app. This step is extremely important. Without the OTP you will be locked out of this system.": "",
"Scheduled Scrub Task": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
......@@ -2938,6 +2938,7 @@
"Save configuration settings from this machine before updating?": "",
"Save current ACL entries as a preset for future use.": "",
"Save network interface changes?": "",
"Save the 'Require Kerberos for NFSv4' value before adding SMP": "",
"Saving Debug": "",
"Saving KMIP Config": "",
"Saving Permissions": "",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment