new template()
The template store module handles the basic template from which a workshop is created. This is likely to change in future when forking existing workshops becomes an option in the Builder Tool.
Members
-
static Mutations :Object
-
Name Accepts Type Mutates State Property Description setSearchFlag
boolean fetchInProgress
Set the search flag. setMaster
string master
Set the master template content. addError
Error errors
Add an error to the log. -
static State
-
Properties:
Name Type Description master
null | string Template repository _config.yml file. fetchInProgress
boolean Whether a template fetch is in progress. errors
Array.<Error> List of errors encountered.
Methods
-
action handler(nsContext, repo) → {Promise.<void>|void}
-
Fetch the _config.yml file from repo to use as a template.
Vuex Action => Mutates state propertymaster
Parameters:
Name Type Description nsContext
StoreContext repo
string Repository to use as a template. Returns:
Promise.<void> | void