-
Notifications
You must be signed in to change notification settings - Fork 635
/
MarkAsCompleteModal.vue
40 lines (33 loc) · 1 KB
/
MarkAsCompleteModal.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template>
<KModal
:title="learnString('markResourceAsCompleteLabel')"
:submitText="coreString('confirmAction')"
:cancelText="coreString('cancelAction')"
@submit="$emit('complete')"
@cancel="$emit('cancel')"
>
<div v-if="!showLoading">
{{ $tr('markResourceAsCompleteConfirmation') }}
</div>
</KModal>
</template>
<script>
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import commonLearnStrings from './commonLearnStrings';
export default {
name: 'MarkAsCompleteModal',
mixins: [commonCoreStrings, commonLearnStrings],
data() {
return {
showLoading: false,
};
},
$trs: {
markResourceAsCompleteConfirmation: {
message: 'Are you sure you want to mark this resource as completed?',
context:
"The text asking the user to confirm that they want to manually mark the resource as complete, regardless of whether they've hit the 'completion criteria'",
},
},
};
</script>