Skip to content

Commit

Permalink
implement additional ie11 message
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jun 13, 2023
1 parent 54e7f9a commit 0affbf0
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
<p v-if="py27Deprecated">
{{ coreString('pythonSupportWillBeDropped') }}
</p>
<p v-if="ie11Deprecated">
<p v-if="currentUserOnIE11">
{{ coreString('currentDeviceUsingIE11') }}
</p>
<p v-if="userDevicesUsingIE11">
{{ coreString('userDevicesUsingIE11') }}
</p>
<p v-if="currentUserOnIE11 || userDevicesUsingIE11">
{{ coreString('browserSupportWillBeDroppedIE11') }}
</p>
</div>
Expand All @@ -31,21 +37,25 @@
<script>
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import { browser } from 'kolibri.utils.browserInfo';
import plugin_data from 'plugin_data';
export default {
name: 'DeprecationWarningBanner',
mixins: [commonCoreStrings],
computed: {
showBanner() {
return this.ie11Deprecated || this.py27Deprecated;
return this.currentUserOnIE11 || this.userDevicesUsingIE11 || this.py27Deprecated;
},
ie11Deprecated() {
userDevicesUsingIE11() {
return plugin_data.deprecationWarnings.ie11;
},
py27Deprecated() {
return plugin_data.deprecationWarnings.py27;
},
currentUserOnIE11() {
return browser.name === 'IE';
},
},
};
Expand Down

0 comments on commit 0affbf0

Please sign in to comment.