Update toggle caption for vif

This commit is contained in:
aron bergur jóhannsson 2023-02-24 08:14:33 +00:00 committed by Jeremy Stretch
parent 1f0db6d2fa
commit 4f12eccde6
3 changed files with 12 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -236,15 +236,22 @@ class TableState {
private toggleCaption(): void { private toggleCaption(): void {
const showEnabled = this.enabledButton.buttonState === 'show'; const showEnabled = this.enabledButton.buttonState === 'show';
const showDisabled = this.disabledButton.buttonState === 'show'; const showDisabled = this.disabledButton.buttonState === 'show';
const showVirtual = this.virtualButton.buttonState === 'show';
if (showEnabled && !showDisabled) { if (showEnabled && !showDisabled && !showVirtual) {
this.captionText = 'Showing Enabled Interfaces'; this.captionText = 'Showing Enabled Interfaces';
} else if (showEnabled && showDisabled) { } else if (showEnabled && showDisabled && !showVirtual) {
this.captionText = 'Showing Enabled & Disabled Interfaces'; this.captionText = 'Showing Enabled & Disabled Interfaces';
} else if (!showEnabled && showDisabled) { } else if (!showEnabled && showDisabled && !showVirtual) {
this.captionText = 'Showing Disabled Interfaces'; this.captionText = 'Showing Disabled Interfaces';
} else if (!showEnabled && !showDisabled) { } else if (!showEnabled && !showDisabled && !showVirtual) {
this.captionText = 'Hiding Enabled & Disabled Interfaces'; this.captionText = 'Hiding Enabled, Disabled & Virtual Interfaces';
} else if (!showEnabled && !showDisabled && showVirtual) {
this.captionText = 'Showing Virtual Interfaces';
} else if (showEnabled && !showDisabled && showVirtual) {
this.captionText = 'Showing Enabled & Virtual Interfaces';
} else if (showEnabled && showDisabled && showVirtual) {
this.captionText = 'Showing Enabled, Disabled & Virtual Interfaces';
} else { } else {
this.captionText = ''; this.captionText = '';
} }