From 2e4fc4a7e24d7f63d126a1c04d7f189af102ef99 Mon Sep 17 00:00:00 2001
From: Anton Sattarov <dirty.mew@gmail.com>
Date: Tue, 14 Nov 2023 14:10:44 +0100
Subject: [PATCH] fix

---
 pkg/extension/action.go | 48 ++++++-----------------------------------
 1 file changed, 6 insertions(+), 42 deletions(-)

diff --git a/pkg/extension/action.go b/pkg/extension/action.go
index 886cb2e1..37003f10 100644
--- a/pkg/extension/action.go
+++ b/pkg/extension/action.go
@@ -62,48 +62,12 @@ const (
 )
 
 var (
-	TargetsNames = map[ActionTarget]string{
-		TargetDefault:      "DEFAULT",
-		TargetModal:        "MODAL",
-		TargetWide:         "WIDE",
-		TargetMain:         "MAIN",
-		TargetDrawer:       "DRAWER",
-		TargetNotification: "NOTIFICATION",
-		TargetBlank:        "BLANK",
-		TargetNone:         "NONE",
-	}
-
-	TargetsValue = map[string]ActionTarget{
-		"DEFAULT":      TargetDefault,
-		"MODAL":        TargetModal,
-		"WIDE":         TargetWide,
-		"MAIN":         TargetMain,
-		"DRAWER":       TargetDrawer,
-		"NOTIFICATION": TargetNotification,
-		"BLANK":        TargetBlank,
-		"NONE":         TargetNone,
-	}
-
-	KindNames = map[ActionKind]string{
-		ActionKindDefault:     "DEFAULT",
-		ActionKindSpace:       "SPACE",
-		ActionKindEnvironment: "ENVIRONMENT",
-		ActionKindCollection:  "COLLECTION",
-		ActionKindItem:        "ITEM",
-		ActionKindItems:       "ITEMS",
-		ActionKindRevision:    "REVISION",
-		ActionKindCreate:      "CREATE",
-	}
-	KindValue = map[string]ActionKind{
-		"DEFAULT":     ActionKindDefault,
-		"SPACE":       ActionKindSpace,
-		"ENVIRONMENT": ActionKindEnvironment,
-		"COLLECTION":  ActionKindCollection,
-		"ITEM":        ActionKindItem,
-		"ITEMS":       ActionKindItems,
-		"REVISION":    ActionKindRevision,
-		"CREATE":      ActionKindCreate,
-	}
+	TargetName       = pb.Target_name
+	TargetValue      = pb.Target_value
+	ActionKindName   = pb.Action_Kind_name
+	ActionKindValue  = pb.Action_Kind_value
+	ActionViewName   = pb.Action_View_name
+	ActtionViewValue = pb.Action_View_value
 )
 
 type Action struct {
-- 
GitLab