Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins committed Oct 31, 2023
1 parent 03ad172 commit a0718a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async function activatePlugin(
let mainAreaWidget: MainAreaWidget<NotebookJobsPanel> | undefined;
let jobsPanel: NotebookJobsPanel | undefined;

const eventLogger: Scheduler.EventLogger = (eventName) => {
const eventLogger: Scheduler.EventLogger = eventName => {
if (!eventName) {
return;
}
Expand All @@ -193,7 +193,7 @@ async function activatePlugin(
timestamp: new Date()
};
telemetryHandler(eventLog).then();
}
};

const showJobsPanel = async (data: IJobsModel) => {
if (!mainAreaWidget || mainAreaWidget.isDisposed) {
Expand Down Expand Up @@ -237,18 +237,18 @@ async function activatePlugin(

commands.addCommand(CommandIDs.showNotebookJobs, {
execute: async args => {
if(args['launcher']){
eventLogger("launcher.show-jobs")
if (args['launcher']) {
eventLogger('launcher.show-jobs');
}
showJobsPanel(args as IJobsModel)
showJobsPanel(args as IJobsModel);
},
label: trans.__('Notebook Jobs'),
icon: eventNoteIcon
});

commands.addCommand(CommandIDs.createJobFileBrowser, {
execute: async () => {
eventLogger("file-browser.create-job");
eventLogger('file-browser.create-job');
const widget = fileBrowserTracker.currentWidget;
const filePath = getSelectedFilePath(widget) ?? '';

Expand All @@ -271,7 +271,7 @@ async function activatePlugin(

commands.addCommand(CommandIDs.createJobCurrentNotebook, {
execute: async () => {
eventLogger("notebook-header.create-job");
eventLogger('notebook-header.create-job');
// Get the current notebook's name and path
const contentsModel =
notebookTracker.currentWidget?.context?.contentsModel;
Expand Down
1 change: 0 additions & 1 deletion src/notebook-jobs-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export class NotebookJobsPanel extends VDomRenderer<JobsModel> {
}
};


/**
* Handle the DOM events for the directory listing.
*
Expand Down

0 comments on commit a0718a8

Please sign in to comment.