Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions dist/doboard-widget-bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/doboard-widget-bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/doboard-widget-bundle.min.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion js/src/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ function storageProvidedTaskHasUnreadUpdates(taskId) {
}

function storageSaveSpotfixVersion (version) {
localStorage.setItem('spotfix_app_version', `${version}`);
if(version) {
localStorage.setItem('spotfix_app_version', `${version}`);
} else {
localStorage.setItem('spotfix_app_version', '');
}
}

function clearLocalstorageOnLogout () {
Expand Down
5 changes: 2 additions & 3 deletions js/src/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -847,10 +847,9 @@ class CleanTalkWidgetDoboard {
checkLogInOutButtonsVisible();

const user = await getUserDetails(this.params, this.nonRequesting);
let gitHubAppVersion = '';
if(!this.nonRequesting) gitHubAppVersion = await getReleaseVersion();
if(!this.nonRequesting) await getReleaseVersion();
let spotfixVersion = '';
const version = gitHubAppVersion || localStorage.getItem('spotfix_app_version') || SPOTFIX_VERSION;
const version = localStorage.getItem('spotfix_app_version') || SPOTFIX_VERSION;
spotfixVersion = version ? `Spotfix version ${version}.` : '';

templateVariables.spotfixVersion = spotfixVersion || '';
Expand Down
1 change: 1 addition & 0 deletions styles/doboard-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,7 @@
position: relative;
display: inline-block;
width: 46px;
min-width: 46px;
height: 28px;
}

Expand Down