diff --git a/pkg/extension/action.go b/pkg/extension/action.go index 886cb2e1b0f11885a17ab68a42662b08ac926671..37003f10b3db33454ab5984320150ab43bf327bd 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 {