Skip to content

Commit

Permalink
Merge pull request #31 from BC-SECURITY/dev
Browse files Browse the repository at this point in the history
v1.2.3
  • Loading branch information
vinnybod authored May 24, 2020
2 parents 93507bb + cae516c commit b02c5c8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.3] - 2020-05-24
- Fix a bug that didn't allow 0 values when creating listeners, stagers
- Updated agent tab ui to have centered tabs
- Kill agent from the list view now works

## [1.2.2] - 2020-05-09
- Gained a little vertical real estate by updating layout of the Agent page
- Switched vue-router to hash mode
Expand Down
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.2",
"version": "1.2.3",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 1 addition & 1 deletion src/components/agents/AgentExecuteModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default {
map[field.name] = [];
if (field.Required === true) {
map[field.name].push(
v => (!!v && v !== 0) || `${field.name} is required`,
v => (!!v || v === 0) || `${field.name} is required`,
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/AgentEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
<v-tabs
v-model="activeTab"
class="scrollable-pane"
centered
small
grow
>
<v-tab
key="interact"
Expand Down Expand Up @@ -242,7 +242,7 @@ export default {
methods: {
splitPaneHeight() {
/* Not the prettiest thing, but seems to cover most window sizes to avoid page scroll.
That's 94vh - height of breadcrumbs (57) - height of footer (36px) */
That's 96vh - height of breadcrumbs (57) - height of footer (36px) */
return 'height: calc(96vh - 57px - 36px';
},
getAgent(id) {
Expand Down
3 changes: 1 addition & 2 deletions src/views/Agents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ export default {
this.$store.dispatch('agent/getAgents');
},
async killAgent(item) {
if (await this.$root.$confirm('Kill Agent', `Do you want to kill agent ${this.agent.name}?`, { color: 'red' })) {
this.$store.dispatch('listener/killListener', item.name);
if (await this.$root.$confirm('Kill Agent', `Do you want to kill agent ${item.name}?`, { color: 'red' })) {
this.$store.dispatch('agent/killAgent', { name: item.name });
this.$toast.success(`Agent ${item.name} tasked to run TASK_EXIT.`);
this.getAgents();
Expand Down
2 changes: 1 addition & 1 deletion src/views/ListenerEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default {
map[field.name] = [];
if (field.Required === true) {
map[field.name].push(
v => (!!v && v !== 0) || `${field.name} is required`,
v => (!!v || v === 0) || `${field.name} is required`,
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/StagerEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default {
map[field.name] = [];
if (field.Required === true) {
map[field.name].push(
v => (!!v && v !== 0) || `${field.name} is required`,
v => (!!v || v === 0) || `${field.name} is required`,
);
}
Expand Down

0 comments on commit b02c5c8

Please sign in to comment.