Refactor document tab management from Panel.vue into utilities/documents.ts

This commit is contained in:
Keavon Chambers
2021-08-04 12:39:39 -07:00
parent 9a59d87857
commit a9364f5122
6 changed files with 110 additions and 137 deletions
@@ -4,7 +4,7 @@
<MenuBarInput v-if="platform !== ApplicationPlatform.Mac" />
</div>
<div class="header-third">
<WindowTitle :title="`${document.title}${document.unsaved ? '*' : ''} - Graphite`" />
<WindowTitle :title="`${documents.title}${documents.unsaved ? '*' : ''} - Graphite`" />
</div>
<div class="header-third">
<WindowButtonsWindows :maximized="maximized" v-if="platform === ApplicationPlatform.Windows || platform === ApplicationPlatform.Linux" />
@@ -41,7 +41,7 @@ import MenuBarInput from "@/components/widgets/inputs/MenuBarInput.vue";
import { ApplicationPlatform } from "@/components/window/MainWindow.vue";
export default defineComponent({
inject: ["document"],
inject: ["documents"],
props: {
platform: { type: String, required: true },
maximized: { type: Boolean, required: true },