Skip to content

Commit e71b647

Browse files
Corrige verificação de presença da config de repository
1 parent d755125 commit e71b647

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/joaostroher/insomnia-plugin-repo-sync.git"
9+
"url": "git+https://github.com/ignicaodigitalbr/insomnia-plugin-repo-sync.git"
1010
},
1111
"keywords": [
1212
"insomnia",
1313
"plugin",
1414
"git"
1515
],
1616
"bugs": {
17-
"url": "https://github.com/joaostroher/insomnia-plugin-repo-sync/issues"
17+
"url": "https://github.com/ignicaodigitalbr/insomnia-plugin-repo-sync/issues"
1818
},
1919
"main": "src/index.js",
2020
"insomnia": {
@@ -29,6 +29,6 @@
2929
}
3030
},
3131
"dependencies": {},
32-
"homepage": "https://github.com/joaostroher/insomnia-plugin-repo-sync#readme",
32+
"homepage": "https://github.com/ignicaodigitalbr/insomnia-plugin-repo-sync#readme",
3333
"devDependencies": {}
3434
}

src/ScreenHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class ScreenHelper {
55

66
static async askRepoPath(context, options={}) {
77
await context.app.alert(
8-
'Selecione Repo',
8+
'Selecione Repositorio',
99
`Escolha o repositorio para sincronizar workspaces\nWorkspace Atual: ${options.currentPath}`
1010
);
1111
const path = await context.app.showSaveDialog({defaultPath: options.workspaceName});

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports.workspaceActions = [{
1414
icon: 'fa-download',
1515
action: async (context, models) => {
1616
const repo = new WorkspaceRepo(context);
17-
if (!verifyRepoConfig(repo, context)) return;
17+
if (!await verifyRepoConfig(repo, context)) return;
1818

1919
const path = await repo.getPath();
2020
const ex = await context.data.export.insomnia({
@@ -31,7 +31,7 @@ module.exports.workspaceActions = [{
3131
icon: 'fa-upload',
3232
action: async (context, models) => {
3333
const repo = new WorkspaceRepo(context);
34-
if (!verifyRepoConfig(repo, context)) return;
34+
if (!await verifyRepoConfig(repo, context)) return;
3535

3636
const path = await repo.getPath();
3737
const imported = fs.readFileSync(`${path}/${models.workspace.name}.yml`, 'utf8');

0 commit comments

Comments
 (0)