aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Buttons.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-03-02 12:51:20 +0300
committerRblSb <msrblsb@gmail.com>2020-03-02 12:51:20 +0300
commit298197a07496a762c415d0a7c77e0307243504b8 (patch)
tree0f8d90e2b175fd72a13f394ab7e7257ef03943b2 /src/client/Buttons.hx
parent8a277e9ca3a64d7b298b7c9333153f5512aa176d (diff)
Playlist lock toggler
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