Skip to content

Commit 49cd7db

Browse files
committed
chore(header): temporary disabled
1 parent 6e6ae4c commit 49cd7db

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

packages/better-write-app/src/components/page/editor/header/items/EditorBaseHeaderCreate.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@
9696
import { useProjectStore } from '@/store/project'
9797
import { useEnv } from '@/use/env'
9898
import { useI18n } from 'vue-i18n'
99+
import { useToast } from 'vue-toastification'
99100
import { usePlugin } from 'better-write-plugin-core'
100101
import { useStorage } from '@/use/storage/storage'
101102
import { useProject } from '@/use/project'
102103
103104
const ABSOLUTE = useAbsoluteStore()
104105
const PROJECT = useProjectStore()
105106
107+
const toast = useToast()
106108
const env = useEnv()
107109
const plugin = usePlugin()
108110
const { t } = useI18n()
@@ -118,6 +120,8 @@
118120
const onEPUBGenerate = async () => {
119121
await storage.normalize()
120122
123+
toast.warning(t('toast.epub.disabled'))
124+
121125
plugin.emit('plugin-epub-generate')
122126
}
123127

packages/better-write-languages/src/en-US/toast.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export default {
1515
successRemoved: 'Successfully Removed!',
1616
onlyOnline: 'You are without internet access to access this feature!',
1717
},
18+
epub: {
19+
disabled: 'The .EPUB generator is temporarily disabled :('
20+
},
1821
pdf: {
1922
error: 'Could not generate the pdf.',
2023
configuration: {

packages/better-write-languages/src/pt-BR/toast.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export default {
1616
onlyOnline:
1717
'Voce está sem acesso à internet para conseguir acessar este recurso!',
1818
},
19+
epub: {
20+
disabled: 'O gerador de .EPUB está temporariamente desabilitado :('
21+
},
1922
pdf: {
2023
error: 'Não foi possível gerar o pdf.',
2124
configuration: {

0 commit comments

Comments
 (0)