Skip to content

Commit 33b1e20

Browse files
author
Guillaume Chau
committedMar 14, 2018
fix(ui): PluginAdd current plugin display
1 parent 0248ee2 commit 33b1e20

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎packages/@vue/cli-ui/src/views/ProjectPluginsAdd.vue

+9-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
lazy
8686
>
8787
<div class="content vue-disable-scroll">
88-
<div class="cta-text">Installation of {{ selectedId }}</div>
88+
<div class="cta-text">Installation of {{ pluginId }}</div>
8989

9090
<PromptsList
9191
:prompts="enabledPrompts"
@@ -116,12 +116,12 @@
116116

117117
<VueModal
118118
v-if="showCancelInstall"
119-
:title="`Uninstall ${selectedId}?`"
119+
:title="`Uninstall ${pluginId}?`"
120120
class="small"
121121
@close="showCancelInstall = false"
122122
>
123123
<div class="default-body">
124-
Do you want to uninstall the {{ selectedId }} plugin?
124+
Do you want to uninstall the {{ pluginId }} plugin?
125125
</div>
126126

127127
<div slot="footer" class="actions space-between">
@@ -194,6 +194,12 @@ export default {
194194
}
195195
},
196196
197+
computed: {
198+
pluginId () {
199+
return this.pluginInstallation && this.pluginInstallation.pluginId
200+
}
201+
},
202+
197203
mounted () {
198204
requestAnimationFrame(() => {
199205
this.$refs.searchInput.focus()

0 commit comments

Comments
 (0)
Please sign in to comment.