mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Turn extract click listener back on.
Add shadow to tabs when there are more tabs that aren't displayed
This commit is contained in:
parent
12e4fe4120
commit
9b2f44efb1
3 changed files with 28 additions and 4 deletions
|
@ -467,11 +467,15 @@ self.setInput = function(inputData) {
|
|||
*/
|
||||
self.refreshTabs = function(inputNum, direction) {
|
||||
const nums = self.getNearbyNums(inputNum, direction);
|
||||
const tabsLeft = (self.getSmallestInputNum() !== nums[0]);
|
||||
const tabsRight = (self.getLargestInputNum() !== nums[nums.length - 1]);
|
||||
self.postMessage({
|
||||
action: "refreshTabs",
|
||||
data: {
|
||||
nums: nums,
|
||||
activeTab: (nums.includes(inputNum)) ? inputNum : self.getNextInputNum(inputNum)
|
||||
activeTab: (nums.includes(inputNum)) ? inputNum : self.getNextInputNum(inputNum),
|
||||
tabsLeft: tabsLeft,
|
||||
tabsRight: tabsRight
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue