@@ -1125,6 +1135,24 @@
Decisions
if (el) this.showOperationsMenuCaret = el.scrollWidth > el.offsetWidth;
},
+ getReadableTime(date) {
+ // i.e. format 2021-08-03 19:37:08
+ if (!date) return '';
+ date = date.replace('T', ' ').replace('Z', '');
+ let split = date.split('-');
+
+ let hMonth = Number(split[1]) - 1;
+ let hDate = Number(split[2].split(' ')[0]);
+ let hTime = split[2].split(' ')[1].split(':');
+
+ return new Date(Date.UTC(split[0], hMonth, hDate, hTime[0], hTime[1], hTime[2])).toLocaleString('en-US', { timeZoneName: 'short' });
+ },
+
+ getLastDecideTime() {
+ if (!this.selectedOperation || !this.selectedOperation.chain || this.selectedOperation.chain.length === 0) return '';
+ return getHumanFriendlyTimeISO8601(this.selectedOperation.chain[this.selectedOperation.chain.length - 1].decide);
+ },
+
// Controls whether user can add link or not--depending on whether adversary allows repeatable abilities, and ability has been added already or not
isLinkAvailable(ability) {
return this.selectedOperation.adversary.has_repeatable_abilities ? true : !this.addedTechniquesIDs.has(ability.technique_id);
@@ -1356,7 +1384,7 @@ Decisions
},
updateLink(status, command = null) {
- const updateLink = {...this.selectedLink, command: b64DecodeUnicode(this.selectedLink.command)};
+ const updateLink = { ...this.selectedLink, command: b64DecodeUnicode(this.selectedLink.command) };
if (command) {
updateLink.command = command;
}
@@ -1520,7 +1548,7 @@ Decisions
font-size: 0.3em;
}
- #operationsPage .ellipsis-divider i {
+ #operationsPage .ellipsis-divider em {
color: #484747;
padding: 0 7em;
}
@@ -1570,7 +1598,7 @@ Decisions
overflow: hidden;
}
- #operationsPage .operation-menu-links i {
+ #operationsPage .operation-menu-links em {
font-size: 3em;
padding-bottom: 5px;
min-width: 35px;
@@ -1688,12 +1716,12 @@ Decisions
transform: scale(1.2);
}
- #operationsPage i sub {
+ #operationsPage em sub {
font-family: sans-serif;
}
#operationsPage .operations-menu-set-width {
- max-width: 45%;
+ width: 45%;
}
#operationsPage .operations-dashboard {