news close button fix
parent
d52757a32e
commit
cb9f636530
|
@ -3,9 +3,9 @@
|
||||||
<div class="layout-news" v-if="newsActive">
|
<div class="layout-news" v-if="newsActive">
|
||||||
<div class="layout-news-container" @click="redirect">
|
<div class="layout-news-container" @click="redirect">
|
||||||
<img class="layout-news-logo p-ml-2" src="./assets/images/topbar-newyear-logo.svg">
|
<img class="layout-news-logo p-ml-2" src="./assets/images/topbar-newyear-logo.svg">
|
||||||
<h3 class="layout-news-header p-px-2">DISCOUNT UP TO 50% ON EVERYTHING AT PRIMESTORE</h3>
|
<h3 class="layout-news-header p-px-2">UP TO 50% DISCOUNT AT PRIMESTORE</h3>
|
||||||
<a href="https://www.primefaces.org/primeblocks-vue" target="_blank" tabindex="-1" class="layout-news-button">
|
<a href="https://www.primefaces.org/primeblocks-vue" target="_blank" tabindex="-1" class="layout-news-button">
|
||||||
Read More
|
VISIT SITE
|
||||||
</a>
|
</a>
|
||||||
<a tabindex="0" class="layout-news-close" @click="hideNews">
|
<a tabindex="0" class="layout-news-close" @click="hideNews">
|
||||||
<i class="pi pi-times"></i>
|
<i class="pi pi-times"></i>
|
||||||
|
@ -100,9 +100,10 @@ export default {
|
||||||
this.sidebarActive = false;
|
this.sidebarActive = false;
|
||||||
DomHandler.removeClass(document.body, 'blocked-scroll');
|
DomHandler.removeClass(document.body, 'blocked-scroll');
|
||||||
},
|
},
|
||||||
hideNews() {
|
hideNews(event) {
|
||||||
this.newsActive = false;
|
this.newsActive = false;
|
||||||
sessionStorage.setItem('primevue-news-hidden', 'true');
|
sessionStorage.setItem('primevue-news-hidden', 'true');
|
||||||
|
event.stopPropagation();
|
||||||
},
|
},
|
||||||
changeTheme(event) {
|
changeTheme(event) {
|
||||||
let themeElement = document.getElementById('theme-link');
|
let themeElement = document.getElementById('theme-link');
|
||||||
|
|
Loading…
Reference in New Issue