// Minimal configuration_workflow. Its only job is to make dev-deploy show the
// standard "Configure" cog on the Settings -> Plugins list, consistent with
// other plugins (the cog renders iff the module exports configuration_workflow
// -- see server/routes/plugins.js cfg_link). dev-deploy is actually configured
// from its own dashboard under /admin/dev-deploy/, so the single step just links
// there.
const Workflow = require("@saltcorn/data/models/workflow");
const Form = require("@saltcorn/data/models/form");
const DASHBOARD_URL = "/admin/dev-deploy/";
const configurationWorkflow = () =>
new Workflow({
steps: [
{
name: "dev-deploy",
form: async () =>
new Form({
blurb:
"dev-deploy is configured from its own dashboard " +
"(environments, peers, plan, journal, conflicts).
" +
`` +
"Open the dev-deploy dashboard",
fields: []
})
}
]
});
module.exports = { configurationWorkflow };