0.1.3 release candidate 1 hotfix

This commit is contained in:
Elvanos 2021-03-05 20:54:03 +01:00
parent 3a387b5223
commit c4a31f17ab
2 changed files with 50 additions and 50 deletions

View file

@ -29,6 +29,7 @@
<script lang="ts">
import { Component, Watch } from "vue-property-decorator"
import { remote } from "electron"
import DialogBase from "src/components/dialogs/_DialogBase"
@Component({
@ -46,7 +47,7 @@ export default class AboutApp extends DialogBase {
}
}
appVersion = process.env.npm_package_version
appVersion = remote.app.getVersion()
}
</script>

View file

@ -1,54 +1,55 @@
<template>
<q-dialog
v-model="dialogModel"
@hide="triggerDialogClose"
>
<q-card dark>
<q-card-section class="row justify-center">
<h6 class="text-center q-my-sm">You have unsaved documents opened!</h6>
</q-card-section>
<q-card-section class="row justify-center q-mx-lg">
All unsaved data will be lost upon closing the app unless the documents are saved first.
</q-card-section>
<q-dialog
v-model="dialogModel"
@hide="triggerDialogClose"
>
<q-card dark>
<q-card-section class="row q-mx-lg">
<div class="q-mb-md text-bold">Affected documents:</div>
<q-list class="projectCloseDalogList">
<q-item
v-for=" doc in openedDocs"
:key="doc._id"
clickable
v-ripple
active
class="noHigh"
active-class="bg-primary-1 text-primary"
v-close-popup
:to="doc.url">
<q-item-section avatar>
<q-icon color="white" :name="doc.icon" />
</q-item-section>
<q-card-section class="row justify-center">
<h6 class="text-center q-my-sm">You have unsaved documents opened!</h6>
</q-card-section>
<q-card-section class="row justify-center q-mx-lg">
All unsaved data will be lost upon closing the app unless the documents are saved first.
</q-card-section>
<q-item-section class="text-primary">{{retrieveFieldValue(doc,'name')}}</q-item-section>
</q-item>
</q-list>
<q-card-section class="row q-mx-lg">
<div class="q-mb-md text-bold">Affected documents:</div>
<q-list class="projectCloseDalogList">
<q-item
v-for=" doc in openedDocs"
:key="doc._id"
clickable
v-ripple
active
class="noHigh"
active-class="bg-primary-1 text-primary"
v-close-popup
:to="doc.url">
<q-item-section avatar>
<q-icon color="white" :name="doc.icon" />
</q-item-section>
</q-card-section>
<q-item-section class="text-primary">{{retrieveFieldValue(doc,'name')}}</q-item-section>
</q-item>
</q-list>
<q-card-actions align="around" class="q-mx-xl q-mt-lg q-mb-md">
<q-btn
flat
label="Cancel"
color="accent"
v-close-popup />
<q-btn
outline
:label="exitLabelText"
color="secondary"
v-close-popup
@click="checkModeAction" />
</q-card-actions>
</q-card>
</q-dialog>
</q-card-section>
<q-card-actions align="around" class="q-mx-xl q-mt-lg q-mb-md">
<q-btn
flat
label="Cancel"
color="accent"
v-close-popup />
<q-btn
outline
:label="exitLabelText"
color="secondary"
v-close-popup
@click="checkModeAction" />
</q-card-actions>
</q-card>
</q-dialog>
</template>
<script lang="ts">
@ -77,9 +78,6 @@ export default class ProjectCloseCheck extends DialogBase {
@Watch("dialogTrigger")
openDialog (val: string|false) {
if (val) {
if (this.SGET_getDialogsState) {
return
}
this.SSET_setDialogState(true)
this.checkForDocumentsWithEdits()
}
@ -124,4 +122,5 @@ export default class ProjectCloseCheck extends DialogBase {
.projectCloseDalogList {
width: 100%;
}
</style>