mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-05 22:38:11 +00:00
Poprawki w widoczności modalu
This commit is contained in:
@@ -53,8 +53,6 @@ import { mapGetters, mapActions } from "vuex";
|
||||
import Clock from "@/components/App/Clock.vue";
|
||||
import Modal from "@/components/Global/Modal.vue";
|
||||
|
||||
import axios from "axios";
|
||||
|
||||
@Component({
|
||||
components: { Clock, Modal },
|
||||
})
|
||||
@@ -66,11 +64,6 @@ export default class App extends Vue {
|
||||
|
||||
async mounted() {
|
||||
this.synchronizeData();
|
||||
|
||||
const data = await (
|
||||
await axios.get("http://stacjownik.eu-central-1.elasticbeanstalk.com")
|
||||
).data;
|
||||
console.log(data);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<template>
|
||||
<transition name="modal-anim">
|
||||
<div class="modal" v-if="!modalHidden">
|
||||
<div class="modal_content">
|
||||
<span class="modal_title">Grosza daj Stacjownikowi...</span>
|
||||
@@ -39,7 +38,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -58,18 +56,6 @@ export default class Modal extends Vue {
|
||||
|
||||
toggleModal(type: string) {
|
||||
this.$emit("toggleModal");
|
||||
|
||||
// if (type == "permament") {
|
||||
// StorageManager.setBooleanValue(`${this.STORAGE_ID}_next`, true);
|
||||
// this.modalHidden = true;
|
||||
// }
|
||||
}
|
||||
|
||||
initStorage() {
|
||||
// if (StorageManager.isRegistered(`${this.STORAGE_ID}_hide`))
|
||||
// this.modalHidden = StorageManager.getBooleanValue(
|
||||
// `${this.STORAGE_ID}_hide`
|
||||
// );
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -109,7 +109,7 @@ export default class StationsView extends Vue {
|
||||
|
||||
focusedStationName: string = "";
|
||||
filterCardOpen: boolean = false;
|
||||
modalHidden: boolean = false;
|
||||
modalHidden: boolean = true;
|
||||
|
||||
inputs = inputData;
|
||||
|
||||
@@ -132,7 +132,7 @@ export default class StationsView extends Vue {
|
||||
|
||||
mounted() {
|
||||
this.initializeOptionsStorage();
|
||||
this.initializeModalStorage();
|
||||
// this.initializeModalStorage();
|
||||
|
||||
window.addEventListener("keydown", (e: KeyboardEvent) => {
|
||||
if (e.keyCode == 27 && this.focusedStationName != "") {
|
||||
|
||||
Reference in New Issue
Block a user