Commit f174603f authored by AlexKarpov's avatar AlexKarpov
Browse files

NAS-116469: Make it easier to find an iSCSI wizard

parent 2f9476a7
Showing with 22 additions and 3 deletions
+22 -3
......@@ -22,7 +22,7 @@
<button mat-button color="default" class="action-icon action-button" *ngIf="tableConf.add" (click)="tableConf.add()"
ix-auto ix-auto-type="button" ix-auto-identifier="{{tableConf.name}}-add"
>{{ 'Add' | translate }}</button>
>{{ tableConf.addButtonLabel ? tableConf.addButtonLabel : ('Add' | translate) }}</button>
<ng-content select="[headerCustomActions]"></ng-content>
</div>
......
......@@ -11,6 +11,7 @@ export interface InputExpandableTableConf extends AppTableConfig {
limitRows?: number;
configure?: () => void;
limitRowsByMaxHeight?: boolean;
addButtonLabel?: string;
}
export enum ExpandableTableState {
......
......@@ -248,9 +248,10 @@ export class SharesDashboardComponent implements AfterViewInit {
prop: 'alias',
},
],
add() {
this.parent.slideInService.open(TargetFormComponent, { wide: true });
add: () => {
this.router.navigate(['/', 'sharing', 'iscsi', 'wizard']);
},
addButtonLabel: this.translate.instant('Wizard'),
edit(row: IscsiTarget) {
const targetForm = this.parent.slideInService.open(TargetFormComponent, { wide: true });
targetForm.setTargetForEdit(row);
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3289,6 +3289,7 @@
"Wipe Disk {name}": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -2348,6 +2348,7 @@
"Windows (SMB) Shares": "",
"Wipe Disk {name}": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Would you like to restart the SMB Service?": "",
"Write ACL": "",
"Write Attributes": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
......@@ -3827,6 +3827,7 @@
"Wipe this disk?": "",
"Wiping disk...": "",
"With your selection, no GPU is available for the host to consume.": "",
"Wizard": "",
"Workgroup": "",
"Would you like to restart the SMB Service?": "",
"Write": "",
......
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