Skip to content

Commit

Permalink
REMOVE default tutorial link.
Browse files Browse the repository at this point in the history
REMOVE default tutorial link.
  • Loading branch information
karminski committed Jan 18, 2024
1 parent a6fe5b6 commit b0078a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 48 deletions.
6 changes: 0 additions & 6 deletions src/model/action_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ func (ac *ActionConfig) SetIsNotVirtualResource() {
ac.IsVirtualResource = false
}

func (ac *ActionConfig) RenderDefaultTutorialLink(actionType int) {
if ac.TutorialLink == "" {
ac.TutorialLink, _ = actionDefaultTutorialMaps[actionType]
}
}

func NewActionConfigByConfigAppRawRequest(rawReq map[string]interface{}) (*ActionConfig, error) {
assertPass := true
actionConfig := &ActionConfig{}
Expand Down
39 changes: 0 additions & 39 deletions src/model/action_default_tutorial_config.go

This file was deleted.

4 changes: 1 addition & 3 deletions src/model/action_for_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ type ActionForExport struct {
}

func NewActionForExport(action *Action) *ActionForExport {
actionConfig := action.ExportConfig()
actionConfig.RenderDefaultTutorialLink(action.ExportType())
return &ActionForExport{
ID: idconvertor.ConvertIntToString(action.ID),
UID: action.UID,
Expand All @@ -49,7 +47,7 @@ func NewActionForExport(action *Action) *ActionForExport {
Template: action.ExportTemplateInMap(),
Transformer: action.ExportTransformerInMap(),
TriggerMode: action.TriggerMode,
Config: actionConfig,
Config: action.ExportConfig(),
CreatedAt: action.CreatedAt,
CreatedBy: idconvertor.ConvertIntToString(action.CreatedBy),
UpdatedAt: action.UpdatedAt,
Expand Down

0 comments on commit b0078a6

Please sign in to comment.