mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 04:40:37 +03:00
3fb80554ef
* WIP External actions modal frontend * Add external action links * Allow modal to show/hide and use a dynamic url * Use external link object instead of just url for state * add style and placement to external action buttons * reformat and simplify tag list style as not to conflict with action buttons and make them look less actionable since they're not * fix bug to open modal * have Esc key close modal * fix style on modal * make modal bg darker * close modal when you click outside of it * fix zindex * Add support for external action icons and colors * Some external action modal sizing + loading spinner Co-authored-by: Ginger Wong <omqmail@gmail.com>
17 lines
699 B
Go
17 lines
699 B
Go
package models
|
|
|
|
// ExternalAction is a link that will open as a 3rd party action.
|
|
type ExternalAction struct {
|
|
// URL is the URL to load.
|
|
URL string `json:"url"`
|
|
// Title is the name of this action, displayed in the modal.
|
|
Title string `json:"title"`
|
|
// Description is the description of this action.
|
|
Description string `json:"description"`
|
|
// Icon is the optional icon for the button associated with this action.
|
|
Icon string `json:"icon"`
|
|
// Color is the optional color for the button associated with this action.
|
|
Color string `json:"color"`
|
|
// OpenExternally states if the action should open a new tab/window instead of an internal modal.
|
|
OpenExternally bool `json:"openExternally"`
|
|
}
|