mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 22:08:12 +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 Clock from "@/components/App/Clock.vue";
|
||||||
import Modal from "@/components/Global/Modal.vue";
|
import Modal from "@/components/Global/Modal.vue";
|
||||||
|
|
||||||
import axios from "axios";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: { Clock, Modal },
|
components: { Clock, Modal },
|
||||||
})
|
})
|
||||||
@@ -66,11 +64,6 @@ export default class App extends Vue {
|
|||||||
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.synchronizeData();
|
this.synchronizeData();
|
||||||
|
|
||||||
const data = await (
|
|
||||||
await axios.get("http://stacjownik.eu-central-1.elasticbeanstalk.com")
|
|
||||||
).data;
|
|
||||||
console.log(data);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<transition name="modal-anim">
|
|
||||||
<div class="modal" v-if="!modalHidden">
|
<div class="modal" v-if="!modalHidden">
|
||||||
<div class="modal_content">
|
<div class="modal_content">
|
||||||
<span class="modal_title">Grosza daj Stacjownikowi...</span>
|
<span class="modal_title">Grosza daj Stacjownikowi...</span>
|
||||||
@@ -39,7 +38,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@@ -58,18 +56,6 @@ export default class Modal extends Vue {
|
|||||||
|
|
||||||
toggleModal(type: string) {
|
toggleModal(type: string) {
|
||||||
this.$emit("toggleModal");
|
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>
|
</script>
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ export default class StationsView extends Vue {
|
|||||||
|
|
||||||
focusedStationName: string = "";
|
focusedStationName: string = "";
|
||||||
filterCardOpen: boolean = false;
|
filterCardOpen: boolean = false;
|
||||||
modalHidden: boolean = false;
|
modalHidden: boolean = true;
|
||||||
|
|
||||||
inputs = inputData;
|
inputs = inputData;
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ export default class StationsView extends Vue {
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initializeOptionsStorage();
|
this.initializeOptionsStorage();
|
||||||
this.initializeModalStorage();
|
// this.initializeModalStorage();
|
||||||
|
|
||||||
window.addEventListener("keydown", (e: KeyboardEvent) => {
|
window.addEventListener("keydown", (e: KeyboardEvent) => {
|
||||||
if (e.keyCode == 27 && this.focusedStationName != "") {
|
if (e.keyCode == 27 && this.focusedStationName != "") {
|
||||||
|
|||||||
Reference in New Issue
Block a user