Добавлен неубираемый баннер о переходе на httpS

This commit is contained in:
Book Pauk
2019-11-27 18:11:34 +07:00
parent 7ee23ec38f
commit 13cf47873e

View File

@@ -1,5 +1,8 @@
<template>
<el-container>
<div v-show="isShowMigrationWarning" style="height: 30px; overflow: hidden; white-space:nowrap;">
<span style="margin-left: 10px; font-size: 20px; position: relative; top: 2px" class="clickable" @click="showMigrationHttp">HTTP-версия читалки скоро станет недоступна. Подробнее...</span>
</div>
<el-header v-show="toolBarActive" height='50px'>
<div ref="header" class="header">
<el-tooltip content="Загрузить книгу" :open-delay="1000" effect="light">
@@ -435,6 +438,14 @@ class Reader extends Vue {
}
}
get isShowMigrationWarning() {
return window.location.protocol == 'http:';
}
showMigrationHttp() {
this.migrationVisible1 = true;
}
migrationDialogDisable() {
this.migrationVisible1 = false;
this.migrationVisible2 = false;