Skip to content

Commit 14e4dfb

Browse files
authored
feat: add RTL support to OperationsQueue (#330)
1 parent a406d74 commit 14e4dfb

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

app/components/OperationsQueue.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ function getStatusColor(status: string): string {
8888
function getStatusIcon(status: string): string {
8989
switch (status) {
9090
case 'pending':
91-
return 'i-carbon-time'
91+
return 'i-carbon:time'
9292
case 'approved':
93-
return 'i-carbon-checkmark'
93+
return 'i-carbon:checkmark'
9494
case 'running':
95-
return 'i-carbon-rotate-180'
95+
return 'i-carbon:rotate-180'
9696
case 'completed':
97-
return 'i-carbon-checkmark-filled'
97+
return 'i-carbon:checkmark-filled'
9898
case 'failed':
99-
return 'i-carbon-close-filled'
99+
return 'i-carbon:close-filled'
100100
default:
101-
return 'i-carbon-help'
101+
return 'i-carbon:help'
102102
}
103103
}
104104
@@ -141,7 +141,7 @@ watch(isExecuting, executing => {
141141
:aria-label="$t('operations.queue.refresh')"
142142
@click="refreshState"
143143
>
144-
<span class="i-carbon-renew block w-4 h-4" aria-hidden="true" />
144+
<span class="i-carbon:renew block w-4 h-4" aria-hidden="true" />
145145
</button>
146146
</div>
147147
</div>
@@ -213,7 +213,7 @@ watch(isExecuting, executing => {
213213
:aria-label="$t('operations.queue.approve_operation')"
214214
@click="approveOperation(op.id)"
215215
>
216-
<span class="i-carbon-checkmark block w-4 h-4" aria-hidden="true" />
216+
<span class="i-carbon:checkmark block w-4 h-4" aria-hidden="true" />
217217
</button>
218218
<button
219219
v-if="op.status !== 'running'"
@@ -235,7 +235,7 @@ watch(isExecuting, executing => {
235235
role="alert"
236236
>
237237
<div class="flex items-center gap-2 mb-2">
238-
<span class="i-carbon-locked block w-4 h-4 text-amber-400 shrink-0" aria-hidden="true" />
238+
<span class="i-carbon:locked block w-4 h-4 text-amber-400 shrink-0" aria-hidden="true" />
239239
<span class="font-mono text-sm text-amber-400">
240240
{{ $t('operations.queue.otp_prompt') }}
241241
</span>
@@ -295,7 +295,7 @@ watch(isExecuting, executing => {
295295
class="flex items-center gap-2 font-mono text-xs text-fg-muted cursor-pointer hover:text-fg transition-colors duration-200 select-none"
296296
>
297297
<span
298-
class="i-carbon-chevron-right block w-3 h-3 transition-transform duration-200 [[open]>&]:rotate-90"
298+
class="i-carbon:chevron-right rtl-flip block w-3 h-3 transition-transform duration-200 [[open]>&]:rotate-90"
299299
aria-hidden="true"
300300
/>
301301
{{ $t('operations.queue.log') }} ({{ completedOperations.length }})
@@ -310,8 +310,8 @@ watch(isExecuting, executing => {
310310
<span
311311
:class="
312312
op.status === 'completed'
313-
? 'i-carbon-checkmark-filled text-green-500'
314-
: 'i-carbon-close-filled text-red-500'
313+
? 'i-carbon:checkmark-filled text-green-500'
314+
: 'i-carbon:close-filled text-red-500'
315315
"
316316
class="w-3.5 h-3.5 shrink-0 mt-0.5"
317317
aria-hidden="true"
@@ -331,7 +331,7 @@ watch(isExecuting, executing => {
331331
:aria-label="$t('operations.queue.remove_from_log')"
332332
@click="removeOperation(op.id)"
333333
>
334-
<span class="i-carbon-close block w-3 h-3" aria-hidden="true" />
334+
<span class="i-carbon:close block w-3 h-3" aria-hidden="true" />
335335
</button>
336336
</li>
337337
</ul>

0 commit comments

Comments
 (0)