From af2f2412443fa0a5e6ab7500c7512978ea5a5023 Mon Sep 17 00:00:00 2001 From: Aldo Ortega Date: Fri, 16 Aug 2024 13:04:16 -0400 Subject: [PATCH 1/2] Added UI modal for disabling a switch --- ui/k-info-panel/link_info.kytos | 6 +-- ui/k-info-panel/switch_info.kytos | 82 ++++++++++++++++++++++--------- 2 files changed, 62 insertions(+), 26 deletions(-) diff --git a/ui/k-info-panel/link_info.kytos b/ui/k-info-panel/link_info.kytos index 55287a6..d261810 100644 --- a/ui/k-info-panel/link_info.kytos +++ b/ui/k-info-panel/link_info.kytos @@ -236,8 +236,8 @@ title: 'Delete link: Success', description: 'The link ' + name + ' was deleted.', } - _this.$kytos.$emit("setNotification", notification) - _this.$kytos.$emit("hideInfoPanel") + _this.$kytos.eventBus.$emit("setNotification", notification) + _this.$kytos.eventBus.$emit("hideInfoPanel") }); request.fail(function(data) { let notification = { @@ -245,7 +245,7 @@ title: 'Delete link: Failure', description: data.status + ': ' + data.responseJSON.description + ' The link ' + name + ' was not deleted.', } - _this.$kytos.$emit("setNotification", notification) + _this.$kytos.eventBus.$emit("setNotification", notification) }); }, }, diff --git a/ui/k-info-panel/switch_info.kytos b/ui/k-info-panel/switch_info.kytos index e4a767c..3e80bc6 100644 --- a/ui/k-info-panel/switch_info.kytos +++ b/ui/k-info-panel/switch_info.kytos @@ -2,13 +2,13 @@
- +
-