From 59d88f14ba153827a849a24b10c25980a85c9d96 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Wed, 5 May 2021 19:35:09 +0200 Subject: Change color and position of the delete service button --- frontend/src/components/panels/ServicesPane.js | 4 ++-- services_controller.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/panels/ServicesPane.js b/frontend/src/components/panels/ServicesPane.js index 9f89485..338ebad 100644 --- a/frontend/src/components/panels/ServicesPane.js +++ b/frontend/src/components/panels/ServicesPane.js @@ -217,11 +217,11 @@ class ServicesPane extends Component {
{} + {isUpdate && } - {isUpdate ? : ""}
diff --git a/services_controller.go b/services_controller.go index aea4693..a9576fe 100644 --- a/services_controller.go +++ b/services_controller.go @@ -85,7 +85,8 @@ func (sc *ServicesController) DeleteService(c context.Context, service Service) sc.mutex.Lock() defer sc.mutex.Unlock() - if err := sc.storage.Delete(Services).Context(c).Filter(OrderedDocument{{"_id", service.Port}}).One(); err != nil { + if err := sc.storage.Delete(Services).Context(c).Filter(OrderedDocument{{"_id", service.Port}}). + One(); err != nil { return errors.New(err.Error()) } else { delete(sc.services, service.Port) -- cgit v1.2.3-70-g09d2