externalAction.go 699 B

1234567891011121314151617
  1. package models
  2. // ExternalAction is a link that will open as a 3rd party action.
  3. type ExternalAction struct {
  4. // URL is the URL to load.
  5. URL string `json:"url"`
  6. // Title is the name of this action, displayed in the modal.
  7. Title string `json:"title"`
  8. // Description is the description of this action.
  9. Description string `json:"description"`
  10. // Icon is the optional icon for the button associated with this action.
  11. Icon string `json:"icon"`
  12. // Color is the optional color for the button associated with this action.
  13. Color string `json:"color"`
  14. // OpenExternally states if the action should open a new tab/window instead of an internal modal.
  15. OpenExternally bool `json:"openExternally"`
  16. }