Skip to content
Snippets Groups Projects
Commit b53498fe authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '296-improve-clearity-of-button-for-opening-students-dialog' into 'master'

Resolve "Improve clearity of button for opening students dialog"

Closes #296

See merge request !393
parents 79962595 dc98df7e
No related branches found
No related tags found
1 merge request!393Resolve "Improve clearity of button for opening students dialog"
Pipeline #192034 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