From 33e4b99b72f31d39ae13e7115b81e5d0c504e3af Mon Sep 17 00:00:00 2001 From: Bjorn Lindholm Date: Thu, 24 Sep 2020 16:59:01 +0200 Subject: [PATCH 1/5] Remove test code --- src/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main.js b/src/main.js index 401ed6e..cb8fc27 100644 --- a/src/main.js +++ b/src/main.js @@ -9,8 +9,6 @@ import './assets/tailwind.css' Vue.config.productionTip = false -console.log('HELLO FROM MAIN') - new Vue({ router, store, From 216822e92100db8aa775772ad8f4e856d4e83449 Mon Sep 17 00:00:00 2001 From: Bjorn Lindholm Date: Mon, 28 Sep 2020 09:36:58 +0200 Subject: [PATCH 2/5] Notify when updating --- src/background.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index d6148a2..e7da12f 100644 --- a/src/background.js +++ b/src/background.js @@ -86,7 +86,9 @@ app.on('ready', async () => { } } - if (process.env.NODE_ENV === 'production') autoUpdater.checkForUpdates() + if (process.env.NODE_ENV === 'production') { + autoUpdater.checkForUpdatesAndNotify() + } createWindow() registerCommands(win) From bdb802cc329a5f64503e517e65b44d136faabfea Mon Sep 17 00:00:00 2001 From: Bjorn Lindholm Date: Mon, 28 Sep 2020 09:49:28 +0200 Subject: [PATCH 3/5] Update database selected version when changing type --- src/components/ProjectSettings.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/ProjectSettings.vue b/src/components/ProjectSettings.vue index 8c8c517..6abfcb2 100644 --- a/src/components/ProjectSettings.vue +++ b/src/components/ProjectSettings.vue @@ -231,10 +231,13 @@ return } - this.onInput('database.version', match(value), { - mysql: '5.7', - postgres: '12', - }) + this.onInput( + 'database.version', + match(value, { + mysql: '5.7', + postgres: '12', + }), + ) }, }, } From d66a6129ef2259ac1db1131ce9398da6a357aa4f Mon Sep 17 00:00:00 2001 From: Bjorn Lindholm Date: Mon, 28 Sep 2020 09:59:15 +0200 Subject: [PATCH 4/5] Don't read settings from projects being created --- src/main.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main.js b/src/main.js index cb8fc27..2f846ca 100644 --- a/src/main.js +++ b/src/main.js @@ -29,11 +29,13 @@ new Vue({ }), refreshProjects() { - this.projects.forEach(project => { - this.updateProjectStatus(project) - this.updateProjectGitStatus(project) - this.readProjectSettingsFile(project) - }) + this.projects + .filter(project => project.status !== 'creating') + .forEach(project => { + this.updateProjectStatus(project) + this.updateProjectGitStatus(project) + this.readProjectSettingsFile(project) + }) }, }, mounted() { From 107cfb8bd59e6db48df5158b818aaca1065e44ea Mon Sep 17 00:00:00 2001 From: Bjorn Lindholm Date: Mon, 28 Sep 2020 10:06:15 +0200 Subject: [PATCH 5/5] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b745f32..fdb236a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "name": "Bjørn Lindholm", "email": "me@bjornlindholm.com" }, - "version": "0.1.0", + "version": "0.1.1", "private": true, "type": "module", "scripts": {