Skip to content

Commit

Permalink
Use sprite component for armoire sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen authored and SabreCat committed Nov 26, 2024
1 parent 75c9731 commit 834f2ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion website/client/src/components/achievements/armoireEmpty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="modal-body">
<div class="row">
<div class="col-6 offset-3">
<div class="shop_armoire"></div>
<Sprite image-name="shop_armoire" />
<p>{{ $t('armoireLastItem') }}</p>
<p>{{ $t('armoireNotesEmpty') }}</p>
</div>
Expand All @@ -34,7 +34,12 @@
</style>

<script>
import Sprite from '@/components/Sprite.vue';
export default {
components: {
Sprite,
},
methods: {
close () {
this.$root.$emit('bv::hide::modal', 'armoire-empty');
Expand Down
4 changes: 3 additions & 1 deletion website/client/src/components/achievements/ultimateGear.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<p v-html="$t('moreGearAchievements')"></p>
<br>
</div>
<div class="shop_armoire"></div>
<Sprite image-name="shop_armoire" />
<p v-html="$t('armoireUnlocked')"></p>
<br>
<button
Expand Down Expand Up @@ -87,11 +87,13 @@
import achievementFooter from './achievementFooter';
import achievementAvatar from './achievementAvatar';
import { mapState } from '@/libs/store';
import Sprite from '@/components/ui/sprite.vue';
export default {
components: {
achievementFooter,
achievementAvatar,
Sprite,
},
computed: {
...mapState({ user: 'user.data' }),
Expand Down

0 comments on commit 834f2ed

Please sign in to comment.