aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Buttons.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Buttons.hx')
-rw-r--r--src/client/Buttons.hx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx
index e567331..d50773d 100644
--- a/src/client/Buttons.hx
+++ b/src/client/Buttons.hx
@@ -109,6 +109,10 @@ class Buttons {
if (!window.confirm(Lang.get("shufflePlaylistConfirm"))) return;
main.send({type: ShufflePlaylist});
}
+ final lockPlaylist = ge("#lockplaylist");
+ lockPlaylist.onclick = e -> {
+ if (main.isAdmin()) main.send({type: TogglePlaylistLock});
+ }
final showMediaUrl = ge("#showmediaurl");
showMediaUrl.onclick = e -> {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage