diff --git a/frontend/src/components/wc-filtered.vue b/frontend/src/components/wc-filtered.vue
index a5b85c8..731b397 100644
--- a/frontend/src/components/wc-filtered.vue
+++ b/frontend/src/components/wc-filtered.vue
@@ -10,9 +10,9 @@ SPDX-License-Identifier: AGPL-3.0-or-later
all components
- components found
+ components found
- {{ currentPage.totalElements }} components
+ {{ currentPage.totalElements }} components {{ getFilteringString }}
@@ -297,6 +297,7 @@
showPopover: false,
showFullscreenPopover: false,
showEmbedPopover: false,
+ animateEmbedRow: false,
intervalId: 0,
};
},
@@ -490,6 +491,7 @@
if(this.$route.hash == '#chooseRightSidebarTabEmbed'){
this.handleScroll(1)
+ this.animateSnippedBox()
}
},
@@ -504,11 +506,9 @@
}
const anchor = document.getElementById(`chooseRightSidebarTabEmbed`)
setTimeout(()=>{
- console.log("anchor anchor",anchor,loops)
if (anchor) {
- console.log("dadasdasdassaaa asdas asd asd as",window.pageYOffset)
window.scrollTo({
- top: anchor.getBoundingClientRect().top + window.pageYOffset -50
+ top: anchor.getBoundingClientRect().top + window.pageYOffset
})
}else{
loops += 1;
@@ -517,6 +517,8 @@
},100);
},
collapseRightSidebar(){
+ return; //disabled for now
+
this.tabIndex = null;
this.collapsedRightSidebar = true;
},
@@ -571,36 +573,56 @@
this.tabIndex = 0;
},
- copyLinkToClipboard(): void {
+ clearPopovers():void{
+ this.animateEmbedRow = false;
+ this.showPopover = false;
+ this.showFullscreenPopover = false;
+ this.showEmbedPopover = false;
+ },
+
+ copyLinkToClipboard():void {
+ this.clearPopovers()
copyToClipboard(this.getDetailsLink);
clearInterval(this.intervalId);
this.showPopover = true;
this.intervalId = setInterval(
function () {
- this.showPopover = false;
+ this.showPopover = false;
}.bind(this),
3000
);
},
copyFullscreenLinkToClipboard(): void {
+ this.clearPopovers()
copyToClipboard(this.getFullscreenLink);
clearInterval(this.intervalId);
this.showFullscreenPopover = true;
this.intervalId = setInterval(
function () {
- this.showFullscreenPopover = false;
+ this.showFullscreenPopover = false;
}.bind(this),
3000
);
},
copySnippetToClipboard(): void {
+ this.clearPopovers()
copyToClipboard(this.editorCode);
clearInterval(this.intervalId);
this.showEmbedPopover = true;
this.intervalId = setInterval(
function () {
- this.showEmbedPopover = false;
+ this.showEmbedPopover = false;
+ }.bind(this),
+ 3000
+ );
+ },
+ animateSnippedBox():void{
+ clearInterval(this.intervalId);
+ this.animateEmbedRow = true;
+ this.intervalId = setInterval(
+ function () {
+ this.animateEmbedRow = false;
}.bind(this),
3000
);
@@ -646,6 +668,44 @@