diff --git a/lib/nunjucks/govuk-prototype-kit/internal/views/manage-prototype/plugin-install-or-uninstall.njk b/lib/nunjucks/govuk-prototype-kit/internal/views/manage-prototype/plugin-install-or-uninstall.njk index 4838bb212f..d4f26af0c3 100644 --- a/lib/nunjucks/govuk-prototype-kit/internal/views/manage-prototype/plugin-install-or-uninstall.njk +++ b/lib/nunjucks/govuk-prototype-kit/internal/views/manage-prototype/plugin-install-or-uninstall.njk @@ -16,7 +16,7 @@ In terminal, run:

{{ command }}

- When you've installed the plug-in, restart your prototype in the terminal by typing: npx govuk-prototype-kit start

+ When you've {{ verb.status }} the plug-in, restart your prototype in the terminal by typing: npx govuk-prototype-kit start

diff --git a/lib/routes/prototype-admin-routes.js b/lib/routes/prototype-admin-routes.js index a4b67a1e48..684974e475 100644 --- a/lib/routes/prototype-admin-routes.js +++ b/lib/routes/prototype-admin-routes.js @@ -417,6 +417,7 @@ router.get('/plugins/install', async (req, res) => { res.status(404).send('Plugin not found') return } + res.render(getManagementView('plugin-install-or-uninstall.njk'), { currentPage: pageName, currentUrl: req.originalUrl, @@ -425,7 +426,8 @@ router.get('/plugins/install', async (req, res) => { command: req.query.mode === 'upgrade' ? chosenPlugin.upgradeCommand : chosenPlugin.installCommand, verb: { title: req.query.mode === 'upgrade' ? 'Upgrade' : 'Install', - para: req.query.mode === 'upgrade' ? 'upgrade' : 'install' + para: req.query.mode === 'upgrade' ? 'upgrade' : 'install', + status: req.query.mode === 'upgrade' ? 'upgraded' : 'installed' } }) }) @@ -462,7 +464,8 @@ router.get('/plugins/uninstall', async (req, res) => { chosenPlugin, verb: { title: 'Uninstall', - para: 'uninstall' + para: 'uninstall', + status: 'uninstalled' } }) })