Skip to content

Commit fef98ff

Browse files
author
Moos, Daniel
committed
Fix icons in SmartPlaylistRulesView, add ExplicitIcon
1 parent a47680a commit fef98ff

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<svg
3+
xmlns="http://www.w3.org/2000/svg"
4+
viewBox="0 0 24 24"
5+
width="1em"
6+
height="1em"
7+
aria-hidden="true"
8+
>
9+
<rect
10+
x="2"
11+
y="2"
12+
width="20"
13+
height="20"
14+
rx="3"
15+
ry="3"
16+
fill="currentColor"
17+
/>
18+
<text
19+
x="12"
20+
y="17"
21+
text-anchor="middle"
22+
font-family="sans-serif"
23+
font-size="13"
24+
font-weight="bold"
25+
fill="white"
26+
>
27+
E
28+
</text>
29+
</svg>
30+
</template>

src/components/smart_playlist/SmartPlaylistRulesView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105

106106
<script setup lang="ts">
107107
import { Badge } from "@/components/ui/badge";
108+
import ExplicitIcon from "@/components/icons/ExplicitIcon.vue";
108109
import type { SmartPlaylistRules } from "@/plugins/api/interfaces";
109110
import { $t } from "@/plugins/i18n";
110111
import {
@@ -114,7 +115,6 @@ import {
114115
Heart,
115116
Library,
116117
Mic2,
117-
ShieldAlert,
118118
Sparkles,
119119
Tags,
120120
Timer,
@@ -249,15 +249,15 @@ const ruleRows = computed<RuleViewRow[]>(() => {
249249
if (r.explicit_only === true) {
250250
rows.push({
251251
key: "explicit-is",
252-
icon: ShieldAlert,
252+
icon: ExplicitIcon,
253253
label: $t("smart_playlist.field_explicit"),
254254
exclude: false,
255255
value: $t("smart_playlist.explicit_yes"),
256256
});
257257
} else if (r.explicit_only === false) {
258258
rows.push({
259259
key: "explicit-not",
260-
icon: ShieldAlert,
260+
icon: Ban,
261261
label: $t("smart_playlist.field_explicit"),
262262
exclude: true,
263263
value: $t("smart_playlist.explicit_no"),

0 commit comments

Comments
 (0)