Skip to content

Commit

Permalink
feat(webui): device discovery in cfm webui (#58)
Browse files Browse the repository at this point in the history
* feat: set the nodes width based on the device id dimensions

* feat: add ipaddress to the existed devices in dashboard

* feat: add new button to discover new devices and the related interfaces

* fix: fix the bug in addDiscoveredHosts interface

* fix: fix bug in addDiscoveredBlades interface

* feat: add function addDiscoveredDevices with output popup and waiting popup

* style:  separate lines for discovered blades and hosts

* feat: add waiting progress for device discovery

* feat: update the content after adding new discovered devices

* feat: distinguish node status by border color

* feat: prevent the user from manually adding blades to the CMA_Discovered_Blades appliance

* style: remove unnecessary stype setup
  • Loading branch information
Meng-20 authored and HJ-Fan committed Dec 10, 2024
1 parent 222faa4 commit 671cd03
Show file tree
Hide file tree
Showing 7 changed files with 625 additions and 87 deletions.
14 changes: 12 additions & 2 deletions webui/src/components/Appliance/Appliances.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
variant="text"
id="addBlade"
@click="addNewBladeWindowButton"
:disabled="isAddBladeButtonDisabled"
>
<v-icon start color="#6ebe4a">mdi-plus-thick</v-icon>
BLADE
Expand Down Expand Up @@ -1524,6 +1525,12 @@ export default {
ComposeMemoryButton,
},

computed: {
isAddBladeButtonDisabled() {
return this.selectedApplianceId === "CMA_Discovered_Blades";
},
},

methods: {
/* Open the add appliance popup */
addNewApplianceWindowButton() {
Expand Down Expand Up @@ -1985,7 +1992,10 @@ export default {
applianceStore.selectedApplianceId,
newBladeId
),
bladeStore.fetchBladeById(applianceStore.selectedApplianceId, newBladeId),
bladeStore.fetchBladeById(
applianceStore.selectedApplianceId,
newBladeId
),
]);
// Update the URL with the new blade ID
updateUrlWithBladeId(applianceStore.selectedApplianceId, newBladeId);
Expand Down Expand Up @@ -2063,4 +2073,4 @@ export default {
.highlighted-tab {
font-weight: bold;
}
</style>
</style>
Loading

0 comments on commit 671cd03

Please sign in to comment.