Skip to content

Commit

Permalink
3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Jun 17, 2023
1 parent ce26e25 commit 578afa8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog
All notable changes to the Audio Player project will be documented in this file.

## 3.4.0 - 2023-06-17
### Added
- NC27

### Fixed
- Remove deprecated createEventSource #586 @[kesselb](https://github.com/kesselb)

## 3.3.1 - 2022-09-30
### Fixed
- Dashboard: cover not showing
Expand Down
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- Use the Recognize app to classify genres by machine learning
See [README](https://github.com/rello/audioplayer/blob/master/README.md) file for all supported MIME types and additional information.]]></description>
<version>3.3.1</version>
<version>3.4.0</version>
<licence>agpl</licence>
<author>Marcel Scherello</author>
<namespace>audioplayer</namespace>
Expand All @@ -35,7 +35,7 @@ See [README](https://github.com/rello/audioplayer/blob/master/README.md) file fo
<screenshot>https://raw.githubusercontent.com/rello/audioplayer/master/screenshots/audioplayer_logo.png</screenshot>
<screenshot>https://raw.githubusercontent.com/rello/audioplayer/master/screenshots/audioplayer_screen.png</screenshot>
<dependencies>
<nextcloud min-version="21" max-version="26"/>
<nextcloud min-version="21" max-version="99"/>
</dependencies>
<settings>
<admin-section>OCA\audioplayer\Settings\AdminSection</admin-section>
Expand Down
7 changes: 6 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,11 @@ OCA.Audioplayer.UI = {

div.appendChild(list);
document.body.appendChild(div);
}
},

handleSettingsButton: function () {
document.getElementById('app-settings').classList.toggle('open');
},

};

Expand Down Expand Up @@ -1360,6 +1364,7 @@ document.addEventListener('DOMContentLoaded', function () {
OCA.Audioplayer.UI.resizePlaylist = _.debounce(OCA.Audioplayer.UI.resizePlaylist, 250);
document.getElementById('app-content').addEventListener('appresized', OCA.Audioplayer.UI.resizePlaylist);
document.getElementById('view-toggle').addEventListener('click', OCA.Audioplayer.UI.handleViewToggleClicked);
document.getElementById('appSettingsButton').addEventListener('click', OCA.Audioplayer.UI.handleSettingsButton);

document.getElementById('app-navigation-toggle_alternative').addEventListener('click', function () {
document.getElementById('newPlaylist').classList.add('ap_hidden');
Expand Down
4 changes: 2 additions & 2 deletions js/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ OCA.Audioplayer.Sidebar = {

OCA.Audioplayer.Sidebar.constructTabs();
$('#tabHeaderMetadata').addClass('selected');
OC.Apps.showAppSidebar();
appsidebar.classList.remove('disappear');
}

appsidebar.dataset.trackid = trackid;
Expand Down Expand Up @@ -141,7 +141,7 @@ OCA.Audioplayer.Sidebar = {

hideSidebar: function () {
document.getElementById('app-sidebar').dataset.trackid = '';
OC.Apps.hideAppSidebar();
document.getElementById('app-sidebar').classList.add('disappear');
document.querySelector('.tabHeaders').innerHTML = '';
document.querySelector('.tabsContainer').innerHTML = '';
OCA.Audioplayer.UI.resizePlaylist();
Expand Down
2 changes: 1 addition & 1 deletion templates/settings/part.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div id="app-settings">
<div id="app-settings-header">
<button name="app settings"
<button name="app settings" id="appSettingsButton"
class="settings-button"
data-apps-slide-toggle="#app-settings-content">
<?php p($l->t('Settings')); ?>
Expand Down

0 comments on commit 578afa8

Please sign in to comment.