Skip to content

Commit

Permalink
Sharing reports not possible any more #354
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Jun 15, 2023
1 parent ad2dd45 commit 26ddbe1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Changelog

## 4.9.4 - 2023-06-15
### Fixed
- NC 27 Uncaught (in promise) TypeError: OC.Apps is undefined #356

## 4.9.3 - 2023-05-27
### Fixed
- Sharing reports not possible any more #354
-

## 4.9.2 - 2023-05-26
### Fixed
- Sharing reports not possible any more #354
Expand Down
3 changes: 2 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@

.sidebarInput {
width: 200px;
border: 2px solid var(--color-border-dark) !important;
border: 1px solid var(--color-border-dark) !important;
border-radius: var(--border-radius-large);
}

.sidebarHeaderClosed {
Expand Down
3 changes: 2 additions & 1 deletion css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@
}
.sidebarInput {
width: 200px;
border: 2px solid var(--color-border-dark) !important;
border: 1px solid var(--color-border-dark) !important;
border-radius: var(--border-radius-large);
}

.sidebarHeaderClosed {
Expand Down
6 changes: 3 additions & 3 deletions js/advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ OCA.Analytics.Advanced = {
if (document.getElementById('advanced').value === 'false') {
if (appsidebar.dataset.id === '') {
document.getElementById("sidebarClose").addEventListener("click", OCA.Analytics.Advanced.hideSidebar);
OC.Apps.showAppSidebar();
appsidebar.classList.remove('disappear');
}
} else {
OCA.Analytics.UI.hideElement('analytics-intro');
OCA.Analytics.UI.showElement('analytics-content');
OC.Apps.showAppSidebar();
appsidebar.classList.remove('disappear');
}
appsidebar.dataset.id = datasetId;
appsidebar.dataset.type = datasetType;
Expand Down Expand Up @@ -110,7 +110,7 @@ OCA.Analytics.Advanced = {

hideSidebar: function () {
document.getElementById('app-sidebar').dataset.id = '';
OC.Apps.hideAppSidebar();
document.getElementById('app-sidebar').classList.add('disappear');
document.querySelector('.tabHeaders').innerHTML = '';
document.querySelector('.tabsContainer').innerHTML = '';
},
Expand Down
6 changes: 3 additions & 3 deletions js/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ OCA.Analytics.Sidebar = {
if (!OCA.Analytics.isAdvanced) {
if (appsidebar.dataset.id === '') {
$('#sidebarClose').on('click', OCA.Analytics.Sidebar.close);
OC.Apps.showAppSidebar();
appsidebar.classList.remove('disappear');
}
} else {
OCA.Analytics.UI.hideElement('analytics-intro');
OCA.Analytics.UI.showElement('analytics-content');
OC.Apps.showAppSidebar();
appsidebar.classList.remove('disappear');
}
appsidebar.dataset.id = datasetId;
appsidebar.dataset.type = datasetType;
Expand Down Expand Up @@ -135,7 +135,7 @@ OCA.Analytics.Sidebar = {

close: function () {
document.getElementById('app-sidebar').dataset.id = '';
OC.Apps.hideAppSidebar();
document.getElementById('app-sidebar').classList.add('disappear');
document.querySelector('.tabHeaders').innerHTML = '';
document.querySelector('.tabsContainer').innerHTML = '';
},
Expand Down

0 comments on commit 26ddbe1

Please sign in to comment.