@@ -12,7 +12,7 @@ import { splitToNameAndVersion } from '../../../utils/DependencyUtils';
1212import { computed , onMounted , ref , watch } from ' vue' ;
1313import { getStore } from ' ../../../providers/generic/store/StoreProvider' ;
1414import { State } from ' ../../../store' ;
15- import { useVulnerablePackageComposable } from ' @r2/components/composables/VulnerablePackageComposable ' ;
15+ import { useConcerningPackageComposable } from ' @r2/components/composables/ConcerningPackageComposable ' ;
1616import { useModManagementComposable } from ' @r2/components/composables/ModManagementComposable' ;
1717
1818const store = getStore <State >();
@@ -23,7 +23,7 @@ type LocalModCardProps = {
2323
2424const props = defineProps <LocalModCardProps >();
2525
26- const { isVulnerablePackage } = useVulnerablePackageComposable ();
26+ const { isConcerningPackage } = useConcerningPackageComposable ();
2727const { uninstallMod } = useModManagementComposable ();
2828
2929const disabledDependencies = ref <ManifestV2 []>([]);
@@ -165,7 +165,7 @@ function dependencyStringToModName(x: string) {
165165}
166166
167167function openReviewModal() {
168- store .commit (' openVulnerableModReviewModal ' , props .mod );
168+ store .commit (' openConcerningModReviewModal ' , props .mod );
169169}
170170 </script >
171171
@@ -176,7 +176,7 @@ function openReviewModal() {
176176 :id =" `${mod.getAuthorName()}-${mod.getName()}-${mod.getVersionNumber()}`"
177177 :image =" mod.getIcon()"
178178 :allowSorting =" true"
179- :class =" [{'card--is-concern': isVulnerablePackage (props.mod)}]"
179+ :class =" [{'card--is-concern': isConcerningPackage (props.mod)}]"
180180 >
181181
182182 <template v-slot :title >
@@ -207,19 +207,19 @@ function openReviewModal() {
207207
208208 <template v-slot :description >
209209 <p class =' card-timestamp' v-if =" mod.getInstalledAtTime() !== 0" ><strong >Installed on:</strong > {{ getReadableDate(mod.getInstalledAtTime()) }}</p >
210- <div class =" notification is-warning" v-if =" isVulnerablePackage (props.mod)" >
210+ <div class =" notification is-warning" v-if =" isConcerningPackage (props.mod)" >
211211 <p >This package was originally downloaded from Thunderstore however can no longer be found.</p >
212212 <p >Mods can be removed due to the author's request or due to violating Thunderstore's package policies.</p >
213213 <p ><strong >It is recommended to remove this mod.</strong ></p >
214- <button v-if =" isVulnerablePackage (props.mod)" class =" button" @click.stop.prevent =" openReviewModal" >
214+ <button v-if =" isConcerningPackage (props.mod)" class =" button" @click.stop.prevent =" openReviewModal" >
215215 Review package
216216 </button >
217217 </div >
218218 </template >
219219
220220 <!-- Show icon button row even when card is collapsed -->
221221 <template v-slot :other-icons >
222- <span v-if =" isVulnerablePackage (props.mod)"
222+ <span v-if =" isConcerningPackage (props.mod)"
223223 class =' card-header-icon' >
224224 <i v-tooltip.left =" `This package can no longer be found on Thunderstore`"
225225 class =' fas fa-unlink'
0 commit comments