-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e13e441
commit bf55199
Showing
5 changed files
with
120 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<template> | ||
<div id="session-initialise-modal"> | ||
<div v-if="open" class="modal-backdrop fade show"></div> | ||
<div class="modal" :class="{show: open}" :style="modalStyle"> | ||
<div class="modal-dialog modal-dialog-centered"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title">WODIN Session</h5> | ||
</div> | ||
<div class="modal-body"> | ||
{{ modalText }} | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn btn-primary" | ||
id="reload-session" | ||
@click="emit('reloadSession')">Reload session</button> | ||
<button class="btn btn-primary" | ||
id="new-session" | ||
@click="emit('newSession')">New session</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
import { computed, defineProps, defineEmits } from "vue"; | ||
import userMessages from "../userMessages"; | ||
const props = defineProps({ | ||
open: Boolean | ||
}); | ||
const emit = defineEmits(["newSession", "reloadSession"]); | ||
const modalStyle = computed(() => { | ||
return { display: props.open ? "block" : "none" }; | ||
}); | ||
const modalText = userMessages.sessions.initialise; | ||
</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
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
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
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