Release v2.4.2

This commit is contained in:
2026-08-03 12:45:27 +01:00
parent 2b9cabdab2
commit e95928f31c
141 changed files with 7694 additions and 5078 deletions
+4 -12
View File
@@ -1,17 +1,9 @@
// Playlist add page renderer.
const { renderView } = require('../../../view');
const renderPlaylistEditorPage = require('./form-page');
module.exports = function renderPlaylistFormPage(message, currentUser) {
return renderView('playlists/add', {
title: 'Create playlist',
active: 'playlists',
playlist: {
fade_between_slides: false,
skip_unavailable_rtmp: false
},
message: message,
currentUser: currentUser || null
});
module.exports = async function renderPlaylistFormPage(message, currentUser, data, pool) {
const adminData = data || (pool ? await require('#src/data').fetchAdminData(pool) : { slides: [] });
return renderPlaylistEditorPage(null, adminData, message, currentUser, { isEdit: false });
};