Skip to content

Commit

Permalink
settings css, display error properly for module execution
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnybod committed Apr 29, 2020
1 parent 81fa49f commit 0fdd8e7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starkiller",
"version": "1.2.0-beta2",
"version": "1.2.0-beta3",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function createWindow() {
// Create the browser window.
win = new BrowserWindow({
width: 1000,
height: 600,
height: 700,
webPreferences: {
nodeIntegration: true,
webSecurity: false,
Expand Down
14 changes: 9 additions & 5 deletions src/components/agents/AgentExecuteModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,16 @@ export default {
}
this.loading = true;
await moduleApi.executeModule(this.selectedModule, this.form);
this.loading = false;
try {
await moduleApi.executeModule(this.selectedModule, this.form);
this.$toast.success(`Module execution queued for ${this.agentName}`);
this.selectedItem = {};
this.selectedModule = '';
} catch (err) {
this.$toast.error(`Error: ${err}`);
}
this.$toast.success(`Module execution queued for ${this.agentName}`);
this.selectedItem = {};
this.selectedModule = '';
this.loading = false;
},
},
};
Expand Down
9 changes: 5 additions & 4 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<div class="headers">
<h3>Settings</h3>
</div>
<v-switch
v-model="darkModeSwitch"
:label="`Dark Mode`"
/>
<div class="page">
<div class="first-part">
<span>{{ user.username }}</span>
Expand All @@ -20,6 +16,11 @@
</v-btn>
</div>
<v-divider />
<v-switch
v-model="darkModeSwitch"
:label="`Dark Mode`"
/>
<v-divider />
<div class="headers pl-0 mt-2">
<h4>Update Password</h4>
</div>
Expand Down

0 comments on commit 0fdd8e7

Please sign in to comment.