Skip to content

Commit

Permalink
to be determined
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanHunsdale committed Jun 22, 2023
1 parent 54cfcec commit ccd446b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/content/freshservice.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

// Main function
togglbutton.render('.tkt-quick-action:not(.toggl)', { observe: true }, function (elem) {
const titleElem = $('.summary-content .subject-text');
const idElem = $('.ticket-details-breadcrumb h3');
const id = idElem.textContent.replace('#','');
const description = id.trim() + ' ' + titleElem.textContent.trim();

const link = togglbutton.createTimerLink({
className: 'freshservice',
description: description,
projectname: '',
calculateTotal: true
});

elem.appendChild(link);
}
);
5 changes: 5 additions & 0 deletions src/origins.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,5 +689,10 @@ export default {
'zube.io': {
url: '*://zube.io/*',
name: 'Zube'
},
'freshservice.com': {
url: '*://*.freshservice.com/*',
name: 'Freshservice',
file: 'freshservice.js'
}
};

0 comments on commit ccd446b

Please sign in to comment.