0.1.8 - RC-4

This commit is contained in:
Elvanos 2021-07-05 16:54:02 +02:00
parent 190e92b635
commit 495da0ad21
6 changed files with 35 additions and 5 deletions

View file

@ -356,6 +356,13 @@ export default class App extends BaseClass {
this.disableDocumentControlBar = options.disableDocumentControlBar
this.refreshDocumentPreviewWindow()
if (options.disableSpellCheck) {
document.body.setAttribute("spellcheck", "false")
}
else {
document.body.setAttribute("spellcheck", "true")
}
}
disableDocumentControlBar = false

View file

@ -523,8 +523,8 @@ export default class BaseClass extends Vue {
}
@Dialogs.Getter("getDialogsState") SGET_getDialogsState!: boolean
@Dialogs.Getter("getExportDialogState") SGET_getExportDialogState!: {prepickedValue: string[]}
@Dialogs.Mutation("setExportDialogState") SSET_setExportDialogState!: (input: string[]) => void
@Dialogs.Getter("getExportDialogState") SGET_getExportDialogState!: {prepickedValue: string[], prepickedDocumentTemplate: string}
@Dialogs.Mutation("setExportDialogState") SSET_setExportDialogState!: (input: string[], prepickedTemplateID?: string) => void
/**
* Refreshes the route

View file

@ -82,6 +82,23 @@
/>
</div>
<div class="col-12 col-md-6 col-lg-4 optionWrapper">
<div class="optionTitle">
Disable spellcheck
<q-icon name="mdi-help-circle" size="16px" class="q-ml-md">
<q-tooltip :delay="500">
Disabled any form of spell/grammar/word checking in the edit mode of a document
<br>
<span class="text-secondary">Please note that this option needs a FULL app restart to consistenly take effect!</span>
</q-tooltip>
</q-icon>
</div>
<q-toggle
v-model="options.disableSpellCheck"
/>
</div>
<div class="col-12 col-md-6 col-lg-4 optionWrapper">
<div class="optionTitle">
Hide relationships help button
@ -1083,6 +1100,7 @@ export default class ProgramSettings extends DialogBase {
options: OptionsStateInteface = {
_id: "settings",
darkMode: false,
disableSpellCheck: false,
preventFilledNoteBoardPopup: false,
agressiveRelationshipFilter: false,
preventAutoScroll: false,

View file

@ -6,10 +6,11 @@ const mutation: MutationTree<DialogsStateInterface> = {
setDialogState (state: DialogsStateInterface, input: boolean) {
state.dialogExists = input
},
setExportDialogState (state: DialogsStateInterface, input: string[]) {
setExportDialogState (state: DialogsStateInterface, input: string[], prepickedTemplateID = "") {
state.exportDialog = {
prepickedValue: input,
triggerTimestamp: uid()
triggerTimestamp: uid(),
prepickedDocumentTemplate: prepickedTemplateID
}
}

View file

@ -2,6 +2,7 @@ export interface DialogsStateInterface {
dialogExists: boolean
exportDialog: {
prepickedValue: string[]
prepickedDocumentTemplate: string
triggerTimestamp: string
}
}
@ -11,7 +12,8 @@ function state (): DialogsStateInterface {
dialogExists: false,
exportDialog: {
prepickedValue: [],
triggerTimestamp: ""
triggerTimestamp: "",
prepickedDocumentTemplate: ""
}
}

View file

@ -2,6 +2,7 @@ export interface OptionsStateInteface {
_id: string,
_rev?: string,
darkMode: boolean
disableSpellCheck: boolean
agressiveRelationshipFilter: boolean
preventFilledNoteBoardPopup: boolean
preventAutoScroll: boolean
@ -53,6 +54,7 @@ function state (): OptionsStateInteface {
return {
_id: "settings",
darkMode: false,
disableSpellCheck: false,
agressiveRelationshipFilter: false,
preventFilledNoteBoardPopup: false,
preventAutoScroll: false,