Skip to content

Commit d7d322f

Browse files
committed
Add tooltip for trying to (un)install mods while game is running
1 parent 5dedf8e commit d7d322f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/renderer/components/mods-list/ModsListItem.vue

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@
9696
</template>
9797
<span>Enable mods to be able to make changes</span>
9898
</v-tooltip>
99+
<v-tooltip
100+
v-else-if="isInstalled && isGameRunning"
101+
color="background"
102+
left
103+
>
104+
<template #activator="{ on, attrs }">
105+
<v-icon
106+
color="green"
107+
v-bind="attrs"
108+
v-on="on"
109+
>
110+
mdi-check-circle
111+
</v-icon>
112+
</template>
113+
<span>Cannot uninstall mods while game is running</span>
114+
</v-tooltip>
99115
<v-icon
100116
v-else-if="isInstalled && (!canInstallMods || inProgress.length > 0)"
101117
color="green"
@@ -153,6 +169,22 @@
153169
</template>
154170
<span>Enable mods to be able to make changes</span>
155171
</v-tooltip>
172+
<v-tooltip
173+
v-else-if="isGameRunning"
174+
color="background"
175+
left
176+
>
177+
<template #activator="{ on, attrs }">
178+
<v-icon
179+
class="icon"
180+
v-bind="attrs"
181+
v-on="on"
182+
>
183+
mdi-download
184+
</v-icon>
185+
</template>
186+
<span>Cannot install mods while game is running</span>
187+
</v-tooltip>
156188
<v-icon
157189
v-else-if="!canInstallMods || inProgress.length > 0"
158190
color="icon"
@@ -230,6 +262,7 @@ export default {
230262
'expandedModId',
231263
'inProgress',
232264
'modsEnabled',
265+
'isGameRunning',
233266
]),
234267
...mapGetters([
235268
'canInstallMods',

0 commit comments

Comments
 (0)