Skip to content

Commit

Permalink
feat: schema modal to have accordian components for adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Aug 19, 2023
1 parent 3c4c074 commit 13ba068
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions client/src/components/SqlSchema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
data-bs-target="#schemaModal"
@click="updateSchema"
>
Show/Modify Schema
Show/Add Schema
</button>
<div
class="modal fade"
Expand All @@ -31,14 +31,6 @@
></button>
</div>
<div class="modal-body">
<textarea
v-model="tempSchema"
class="form-control"
id="schemaTextArea"
rows="20"
cols="40"
>
</textarea>
</div>
<div class="modal-footer">
<button
Expand Down Expand Up @@ -69,6 +61,7 @@
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono,
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}
</style>

<script>
Expand Down Expand Up @@ -108,6 +101,9 @@ export default {
this.currSchema = this.defaultSchema;
this.tempSchema = this.defaultSchema;
},
created() {
this.getData();
},
methods: {
getSchema() {
return this.defaultSchema;
Expand Down

0 comments on commit 13ba068

Please sign in to comment.