From c650d24eebbb6e047b8ae0d4ac6b19d56f380180 Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Wed, 3 Nov 2021 13:14:39 -0400 Subject: Refactor warning dialogs --- application/components/app.vue | 48 ++++------------------ application/components/messages/invalid-repo.vue | 31 ++++++++++++++ application/components/messages/too-many-repos.vue | 37 +++++++++++++++++ 3 files changed, 75 insertions(+), 41 deletions(-) create mode 100644 application/components/messages/invalid-repo.vue create mode 100644 application/components/messages/too-many-repos.vue diff --git a/application/components/app.vue b/application/components/app.vue index ac4348d..d1207e6 100644 --- a/application/components/app.vue +++ b/application/components/app.vue @@ -2,8 +2,8 @@ import Initialize from './initialize.vue' import Keymap from './keymap.vue' -import Loader from './loader.vue' -import Modal from './modal.vue' +import TooManyRepos from './messages/too-many-repos.vue' +import InvalidRepo from './messages/invalid-repo.vue' import * as config from '../config' import * as github from '../github' @@ -12,8 +12,8 @@ export default { components: { keymap: Keymap, Initialize, - Loader, - Modal + TooManyRepos, + InvalidRepo }, provide() { return { @@ -115,9 +115,6 @@ export default { body: JSON.stringify(this.editingKeymap) }) }, - getInstallationUrl() { - return `https://github.com/settings/installations/${github.installation.id}` - }, async doReadyCheck() { await healthcheck() await this.loadData() @@ -128,33 +125,9 @@ export default {