Skip to content

Commit

Permalink
fix(ui): New update available message adapted
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Apr 28, 2018
1 parent 3589818 commit 1b77f51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@vue/cli/lib/util/clearConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ exports.generateTitle = async function (checkUpdate) {
title += ' ' + chalk.magenta.bold('DEBUG')
}
if (checkUpdate && semver.gt(latest, current)) {
title += chalk.green(`
if (process.env.VUE_CLI_API_MODE) {
title += chalk.green(` 🌟️ Update available: ${latest}`)
} else {
title += chalk.green(`
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€${`─`.repeat(latest.length)}──┐
β”‚ Update available: ${latest} β”‚
└────────────────────${`─`.repeat(latest.length)}β”€β”€β”˜`)
}
}

return title
Expand Down

0 comments on commit 1b77f51

Please sign in to comment.