mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 09:53:34 -06:00
Update toggle caption for vif
This commit is contained in:
parent
1f0db6d2fa
commit
4f12eccde6
BIN
netbox/project-static/dist/netbox.js
vendored
BIN
netbox/project-static/dist/netbox.js
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -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 = '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user