Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion frontend/src/components/Discussions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
</template>
{{ __('New {0}').format(singularize(title)) }}
</Button>
<div class="text-2xl-semibold text-ink-gray-9">
<div
class="text-ink-gray-9"
:class="
doctype === 'LMS Batch' ? 'text-lg-semibold' : 'text-2xl-semibold'
"
>
{{ __(title) }}
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/FormShell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
</div>
</template>
<template #actions>
<slot name="actions" />
<div class="flex justify-end gap-2">
<slot name="actions" />
</div>
</template>
</Dialog>

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/Forms/BatchCourseForm.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<FormShell :title="__('Add Course')" size="lg" @close="close">
<template #default>
<div v-if="refusal" class="p-4 text-base text-ink-gray-6">
<div v-if="refusal" class="text-base text-ink-gray-6">
{{ refusal }}
</div>
<div v-else data-testid="batch-course-fields" class="flex flex-col gap-4">
Expand All @@ -16,6 +16,7 @@
/>
<Link
doctype="Course Evaluator"
variant="outline"
v-model="evaluator"
:label="__('Evaluator')"
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Forms/BulkCertificatesForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div v-if="loadingBatch" class="p-4 text-base text-ink-gray-6">
{{ __('Loading...') }}
</div>
<div v-else-if="refusal" class="p-4 text-base text-ink-gray-6">
<div v-else-if="refusal" class="text-base text-ink-gray-6">
{{ refusal }}
</div>
<div v-else data-testid="bulk-certificates-fields" class="space-y-4">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Forms/LiveClassForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div v-if="loadingBatch" class="p-4 text-base text-ink-gray-6">
{{ __('Loading...') }}
</div>
<div v-else-if="refusal" class="p-4 text-base text-ink-gray-6">
<div v-else-if="refusal" class="text-base text-ink-gray-6">
{{ refusal }}
</div>
<div v-else data-testid="live-class-fields" class="flex flex-col gap-4">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Forms/NewBatchForm.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<FormShell :title="__('New Batch')" size="3xl" @close="close">
<template #default>
<div v-if="!canCreateBatch" class="p-4 text-base text-ink-gray-6">
<div v-if="!canCreateBatch" class="text-base text-ink-gray-6">
{{ __('You are not permitted to create a batch.') }}
</div>
<div v-else data-testid="new-batch-fields" class="text-base">
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/pages/Programs/ProgramEnrollment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
<div v-if="refusal" class="p-4 text-base text-ink-gray-6">
{{ refusal }}
</div>
<div v-else-if="loadingProgram" class="p-4 text-base text-ink-gray-6">
{{ __('Loading...') }}
<div
v-else-if="loadingProgram"
role="status"
:aria-label="__('Loading...')"
>
<LoadingIndicator class="size-5 text-ink-gray-5" />
</div>
<div
v-else-if="program.data"
Expand Down Expand Up @@ -99,7 +103,7 @@
</FormShell>
</template>
<script setup lang="ts">
import { createResource, toast, Tooltip } from 'frappe-ui'
import { createResource, LoadingIndicator, toast, Tooltip } from 'frappe-ui'
import type { FrappeResourceError } from 'frappe-ui'
import { computed, inject, onMounted } from 'vue'
import FormShell from '@/components/FormShell.vue'
Expand Down
Loading