Add DialogModal and use it for close confirmations and "coming soon" features (#322)

Closes #269
Closes #196

* Add DialogModal and use it for close confirmations and "coming soon" features

* Code cleanup; add Enter key to accept emphasized dialog button
This commit is contained in:
Keavon Chambers
2021-07-31 14:30:31 -07:00
parent 1c317d0166
commit e02250e8c6
20 changed files with 375 additions and 67 deletions
@@ -24,6 +24,7 @@
}
.workspace-row {
position: relative;
flex: 1 1 100%;
}
@@ -4,7 +4,7 @@
<MenuBarInput v-if="platform !== ApplicationPlatform.Mac" />
</div>
<div class="header-third">
<WindowTitle :title="'Untitled Document.gdd* - Graphite'" />
<WindowTitle :title="`${document.title}${document.unsaved ? '*' : ''} - Graphite`" />
</div>
<div class="header-third">
<WindowButtonsWindows :maximized="maximized" v-if="platform === ApplicationPlatform.Windows || platform === ApplicationPlatform.Linux" />
@@ -41,6 +41,7 @@ import MenuBarInput from "@/components/widgets/inputs/MenuBarInput.vue";
import { ApplicationPlatform } from "@/components/window/MainWindow.vue";
export default defineComponent({
inject: ["document"],
props: {
platform: { type: String, required: true },
maximized: { type: Boolean, required: true },