Skip to content

Commit

Permalink
Selenium fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Apr 5, 2020
1 parent 3097134 commit 831d8ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ OCA.Analytics.Backend = {
OCA.Analytics.Navigation.buildNavigation(data);
OCA.Analytics.Sidebar.Dataset.fillSidebarParentDropdown(data);
if (datasetId) {
OCA.Analytics.Sidebar.hideSidebar();
document.querySelector('#navigationDatasets [data-id="' + datasetId + '"]').click();
}
}
Expand Down
3 changes: 2 additions & 1 deletion js/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ OCA.Analytics.Sidebar.Share = {
for (let share of data) {

if (parseInt(share.type) === OCA.Analytics.SHARE_TYPE_LINK) {
let li = OCA.Analytics.Sidebar.Share.buildShareLinkRow(share.id, share.token, false, parseInt(share.pass));
let li = OCA.Analytics.Sidebar.Share.buildShareLinkRow(share.id, share.token, false, (String(share.pass) == "true"));
shareWithList.appendChild(li);
} else if (parseInt(share.type) === OCA.Analytics.SHARE_TYPE_USER) {
let li = OCA.Analytics.Sidebar.Share.buildShareeRow(share.id, share.uid_owner);
Expand Down Expand Up @@ -538,6 +538,7 @@ OCA.Analytics.Sidebar.Share = {
aUnshare.addEventListener('click', OCA.Analytics.Sidebar.Share.removeShare);
let spanUnshare = document.createElement('span');
spanUnshare.classList.add('icon', 'icon-delete');
spanUnshare.id = 'deleteShare';
let spanUnshareTxt = document.createElement('span');
spanUnshareTxt.innerText = t('analytics', 'Delete share link');
liUnshare.appendChild(aUnshare);
Expand Down

0 comments on commit 831d8ad

Please sign in to comment.