Skip to content

Commit

Permalink
fix(ui): PluginAdd current plugin display
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Mar 14, 2018
1 parent 0248ee2 commit 33b1e20
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/@vue/cli-ui/src/views/ProjectPluginsAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
lazy
>
<div class="content vue-disable-scroll">
<div class="cta-text">Installation of {{ selectedId }}</div>
<div class="cta-text">Installation of {{ pluginId }}</div>

<PromptsList
:prompts="enabledPrompts"
Expand Down Expand Up @@ -116,12 +116,12 @@

<VueModal
v-if="showCancelInstall"
:title="`Uninstall ${selectedId}?`"
:title="`Uninstall ${pluginId}?`"
class="small"
@close="showCancelInstall = false"
>
<div class="default-body">
Do you want to uninstall the {{ selectedId }} plugin?
Do you want to uninstall the {{ pluginId }} plugin?
</div>

<div slot="footer" class="actions space-between">
Expand Down Expand Up @@ -194,6 +194,12 @@ export default {
}
},
computed: {
pluginId () {
return this.pluginInstallation && this.pluginInstallation.pluginId
}
},
mounted () {
requestAnimationFrame(() => {
this.$refs.searchInput.focus()
Expand Down

0 comments on commit 33b1e20

Please sign in to comment.