aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/components/github/invalid-repo.vue
diff options
context:
space:
mode:
Diffstat (limited to 'application/components/github/invalid-repo.vue')
-rw-r--r--application/components/github/invalid-repo.vue30
1 files changed, 5 insertions, 25 deletions
diff --git a/application/components/github/invalid-repo.vue b/application/components/github/invalid-repo.vue
index eee706f..bbb4e3d 100644
--- a/application/components/github/invalid-repo.vue
+++ b/application/components/github/invalid-repo.vue
@@ -1,6 +1,6 @@
<template>
<modal>
- <div class="dialog">
+ <dialog-box @dismiss="$emit('dismiss')">
<h2>Hold up a second!</h2>
<p>The selected repository does not contain <code>info.json</code> or <code>keymap.json</code>.</p>
<p>
@@ -12,29 +12,19 @@
If you have another branch or repository the the required metadata files
you may switch to them instead.
</p>
- <p>
- <button
- class="dismiss"
- @click="$emit('dismiss')"
- v-text="dismissText"
- />
- </p>
- </div>
+ </dialog-box>
</modal>
</template>
<script>
+import DialogBox from '../dialog-box.vue'
import Modal from '../modal.vue'
export default {
name: 'InvalidRepo',
emits: ['dismiss'],
- components: { Modal },
+ components: { DialogBox, Modal },
props: {
- dismissText: {
- type: String,
- default: 'Ok'
- },
otherRepoOrBranchAvailable: {
type: Boolean,
default: false
@@ -44,16 +34,6 @@ export default {
</script>
<style scoped>
-.dialog {
- background-color: white;
- padding: 20px 40px;
- margin: 40px;
- max-width: 500px;
- box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.4);
-}
-.dismiss {
- display: block;
- margin: 0 auto;
-}
+
</style>