-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11783 from ozer550/handle-resource-selection
Synchronise user selections with Quiz Creation State
- Loading branch information
Showing
5 changed files
with
292 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/ConfirmCancellationModal.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<template> | ||
|
||
<div> | ||
<KModal | ||
title="Are you sure you want to exit ?" | ||
> | ||
<p>All the changes made on selected resource will be lost</p> | ||
|
||
<template #actions> | ||
<KGrid> | ||
<KGridItem | ||
:layout12="{ span: 6 }" | ||
:layout8="{ span: 4 }" | ||
:layout4="{ span: 2 }" | ||
> | ||
<KButton | ||
:text="coreString('cancelAction')" | ||
class="kbuttons" | ||
style="width:100%;" | ||
@click="closeModal()" | ||
/> | ||
</KGridItem> | ||
<KGridItem | ||
:layout12="{ span: 6 }" | ||
:layout8="{ span: 4 }" | ||
:layout4="{ span: 2 }" | ||
> | ||
<KButton | ||
:text="coreString('continueAction')" | ||
appearance="raised-button" | ||
style="width:100%;" | ||
primary | ||
@click="handleContinueAction" | ||
/> | ||
</KGridItem> | ||
</KGrid> | ||
</template> | ||
</KModal> | ||
</div> | ||
|
||
</template> | ||
|
||
|
||
<script> | ||
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; | ||
export default { | ||
name: 'ConfirmCancellationModal', | ||
mixins: [commonCoreStrings], | ||
props: { | ||
closePanelRoute: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}, | ||
methods: { | ||
handleContinueAction() { | ||
this.$emit('continue'); | ||
this.$router.replace(this.closePanelRoute); | ||
}, | ||
closeModal() { | ||
this.$emit('cancel'); | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.