From 24ed63e07cc59f1ce87e8d87c1cb3deb8c6aa5e2 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 13 Apr 2019 22:56:32 -0700 Subject: [PATCH] Add undelete button to edit library/user modal --- data/interfaces/default/edit_library.html | 13 +++++++ data/interfaces/default/edit_user.html | 13 +++++++ plexpy/libraries.py | 47 ++++++++++++++--------- plexpy/users.py | 32 +++++++++------ plexpy/webserve.py | 43 +++++++++------------ 5 files changed, 93 insertions(+), 55 deletions(-) diff --git a/data/interfaces/default/edit_library.html b/data/interfaces/default/edit_library.html index 521b2ea0..f8c3863a 100644 --- a/data/interfaces/default/edit_library.html +++ b/data/interfaces/default/edit_library.html @@ -21,6 +21,7 @@ parent_count Returns the parent item count for the library. child_count Returns the child item count for the library. do_notify Returns bool value for whether to send notifications for the library. keep_history Returns bool value for whether to keep history for the library. +deleted_section Returns bool value for whether the library is marked as deleted. DOCUMENTATION :: END @@ -59,6 +60,12 @@ DOCUMENTATION :: END

DANGER ZONE! Click the purge button to remove all history logged for this library. This is permanent!

% endif + % if data['deleted_section']: +
+ +

Click to re-add the library to the Tautulli libraries list.

+
+ % endif % endif + % if data['deleted_user']: +
+ +

Click to re-add the user to the Tautulli users list.

+
+ % endif