Skip to content
Snippets Groups Projects
Commit 518cff15 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add text to student list trigger when no participations exist

parent cc8f29d6
No related branches found
No related tags found
1 merge request!393Resolve "Improve clearity of button for opening students dialog"
Pipeline #192008 failed
......@@ -15,6 +15,13 @@ export default {
timeout: null,
};
},
props: {
labelKey: {
type: String,
required: false,
default: undefined,
},
},
mounted() {
const lessonStart = DateTime.fromISO(this.documentation.datetimeStart);
const now = DateTime.now();
......@@ -70,7 +77,10 @@ export default {
v-on="on"
@click="touchDocumentation"
>
<v-icon>$edit</v-icon>
<v-icon :left="!!labelKey">mdi-account-edit-outline</v-icon>
<template v-if="labelKey">
{{ $t(labelKey) }}
</template>
</v-chip>
</template>
</manage-students-dialog>
......
......@@ -87,7 +87,10 @@ import TardinessChip from "../absences/TardinessChip.vue";
</template>
</tardiness-chip>
<manage-students-trigger v-bind="documentationPartProps" />
<manage-students-trigger
:label-key="!(total > 0) ? 'alsijil.coursebook.notes.show_list' : ''"
v-bind="documentationPartProps"
/>
</div>
</template>
......
......@@ -74,6 +74,9 @@
"empty": "No group note"
}
},
"notes": {
"show_list": "List of participants"
},
"notices": {
"future": "Editing this lesson isn't allowed as this lesson is in the future.",
"no_entry": "There is no entry for this lesson yet."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment