Skip to content
Snippets Groups Projects
Commit 2e4fc4a7 authored by Anton Sattarov's avatar Anton Sattarov
Browse files

fix

parent dbfd7e17
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment