mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
UI plugin dependencies (#4307)
* Add requires field to UI plugin config * Use defer instead of async for useScript * Load plugins based on dependency * Document new field
This commit is contained in:
@@ -55,3 +55,7 @@ func (r *pluginResolver) Paths(ctx context.Context, obj *plugin.Plugin) (*Plugin
|
||||
|
||||
return b.paths(), nil
|
||||
}
|
||||
|
||||
func (r *pluginResolver) Requires(ctx context.Context, obj *plugin.Plugin) ([]string, error) {
|
||||
return obj.UI.Requires, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user