message: DRY up title definitions in router config
diff: @@ -2,24 +2,21 @@ import { RouteConfig } from 'vue-router';
  import Profile from '../model/Profile';
  import ManagerInformation from '../_managerinf/ManagerInformation';
  -const appTitle = `${ManagerInformation.APP_NAME} (${ManagerInformation.VERSION.toString()})`
  +const appTitle = () => `${ManagerInformation.APP_NAME} (${ManagerInformation.VERSION.toString()})`;
  +const profileTitle = () => `${appTitle()} - ${Profile.getActiveProfile().getProfileName()}`;
  const routes: RouteConfig[] = [
  {
  name: 'index',
  path: '/',
  component: () => import("pages/GameSelectionScreen.vue"),
  - meta: {
  - title: () => appTitle
  - }
  + meta: {title: appTitle}
  },
  {
  name: 'splash',
  path: '/splash/',
  component: () => import('pages/Splash.vue'),
  - meta: {
  - title: () => appTitle
  - }
  + meta: {title: appTitle}
  },
  {
  name: 'linux',
  @@ -33,24 +30,18 @@ const routes: RouteConfig[] = [
  name: 'profiles',
  path: '/profiles/',
  component: () => import('pages/Profiles.vue'),
  - meta: {
  - title: () => appTitle
  - }
  + meta: {title: appTitle}
  },
  {
  path: '/',
  component: () => import('components/navigation/NavigationLayout.vue'),
  - meta: {
  - title: () => appTitle
  - },
  + meta: {title: appTitle},
  children: [
  {
  name: 'manager',
  path: 'manager/',
  component: () => import('pages/Manager.vue'),
  - meta: {
  - title: () => `${appTitle} - ${Profile.getActiveProfile().getProfileName()}`
  - },
  + meta: {title: profileTitle},
  children: [
  {
  name: 'manager.installed',
  @@ -59,9 +50,7 @@ const routes: RouteConfig[] = [
  components: {
  subview: () => import('components/views/InstalledModView.vue')
  },
  - meta: {
  - title: () => `${appTitle} - ${Profile.getActiveProfile().getProfileName()}`
  - },
  + meta: {title: profileTitle}
  },
  {
  name: 'manager.online',
  @@ -69,9 +58,7 @@ const routes: RouteConfig[] = [
  components: {
  subview: () => import('components/views/OnlineModView.vue')
  },
  - meta: {
  - title: () => `${appTitle} - ${Profile.getActiveProfile().getProfileName()}`
  - },
  + meta: {title: profileTitle}
  },
  {
  name: 'manager.settings',
  @@ -79,9 +66,7 @@ const routes: RouteConfig[] = [
  components: {
  subview: () => import('components/settings-components/SettingsView.vue')
  },
  - meta: {
  - title: () => `${appTitle} - ${Profile.getActiveProfile().getProfileName()}`
  - }
  + meta: {title: profileTitle}
  }
  ]
  },
  @@ -89,25 +74,19 @@ const routes: RouteConfig[] = [
  name: 'config-editor',
  path: 'config-editor/',
  component: () => import('pages/ConfigEditor.vue'),
  - meta: {
  - title: () => `${appTitle} - ${Profile.getActiveProfile().getProfileName()}`
  - }
  + meta: {title: profileTitle}
  },
  {
  name: 'help',
  path: 'help/',
  component: () => import('pages/Help.vue'),
  - meta: {
  - title: () => `${appTitle} - ${Profile.getActiveProfile().getProfileName()}`
  - }
  + meta: {title: profileTitle}
  },
  {
  name: 'downloads',
  path: 'downloads/',
  component: () => import('pages/DownloadMonitor.vue'),
  - meta: {
  - title: () => `${appTitle} - ${Profile.getActiveProfile().getProfileName()}`
  - }
  + meta: {title: profileTitle}
  }
  ]
  }
  