Skip to content

Commit

Permalink
exception logging, refs #158
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamkou committed Jan 29, 2017
1 parent fc3ebcf commit 47c3d62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"message": "Epic"
},
"optionsAboutShareOpinion": {
"message": "Bitte, <a href=\"https://chrome.google.com/webstore/detail/jironimo/bplmocfiilcboedgegkcndbngiicdihl\" target=\"_blank\">teile deine Meinung</a>."
"message": "Bitte <a href=\"https://chrome.google.com/webstore/detail/jironimo/bplmocfiilcboedgegkcndbngiicdihl\" target=\"_blank\">teile deine Meinung</a> oder <a href=\"https://gitter.im/chrome-jironimo\" target=\"_blank\">komm in unseren gitter chat</a>."
},
"optionsGeneralTitle": {
"message": "Allgemeine Information"
Expand Down
2 changes: 1 addition & 1 deletion src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"message": "Feedback"
},
"optionsAboutShareOpinion": {
"message": "Please, <a href=\"https://chrome.google.com/webstore/detail/jironimo/bplmocfiilcboedgegkcndbngiicdihl\" target=\"_blank\">share your opinion here</a>."
"message": "Please <a href=\"https://chrome.google.com/webstore/detail/jironimo/bplmocfiilcboedgegkcndbngiicdihl\" target=\"_blank\">share your opinion here</a> or <a href=\"https://gitter.im/chrome-jironimo\" target=\"_blank\">join our gitter chat</a>."
},
"optionsAboutAuthor": {
"message": "Author"
Expand Down
2 changes: 2 additions & 0 deletions src/app/lib/jira-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ angular
$httpProvider.interceptors.push(['$q', '$rootScope', '$filter', function ($q, $rootScope, $filter) {
return {
responseError: function (rej) {
window.onerror(_.omit(rej, 'config.url', 'config.headers')); // global debug helper

var messages = [
$filter('i18n')('jiraApiUknownResponse'),
$filter('i18n')('jiraApiCheckSettings')
Expand Down
8 changes: 4 additions & 4 deletions src/app/lib/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,18 @@ angular
stop: function (issue) {
if (!this.canBeStopped(issue)) { return; }

const duration = moment.duration(storage[issue.id].duration),
minutes = duration.asMinutes();
const duration = moment.duration(storage[issue.id].duration);

if (minutes < 0.02) { return; } // less than 2s (fast-click?)
// less than 2s (fast-click?)
if (duration.asSeconds() < 2) { return; }

this.persist().resetBadge(); // transaction

storage[issue.id].stop();

// data set for the work-log request
const dataSet = {
_method: 'POST', comment: duration.humanize(), timeSpent: minutes + 'm'
_method: 'POST', comment: duration.humanize(), timeSpent: duration.asMinutes() + 'm'
};

api.issueWorklog(issue.id, dataSet, err => {
Expand Down

0 comments on commit 47c3d62

Please sign in to comment.