Skip to content

Commit

Permalink
checking current url contains device route
Browse files Browse the repository at this point in the history
  • Loading branch information
iskipu committed Jan 26, 2024
1 parent 6b8acac commit 4f6d0b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kolibri/core/assets/src/views/StorageNotification.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<template>

<div v-if="bannerOpened" class="banner" :style="{ background: $themeTokens.surface }">
<div
v-if="bannerOpened && !isDeviceRoute"
class="banner"
:style="{ background: $themeTokens.surface }"
>
<div class="banner-inner">
<h1 style="display: none">
{{ $tr('bannerHeading') }}
Expand Down Expand Up @@ -99,6 +103,7 @@
data() {
return {
bannerOpened: false,
isDeviceRoute: window.location.pathname.includes('device'),
};
},
computed: {
Expand Down

0 comments on commit 4f6d0b4

Please sign in to comment.