Add Page Populator from Sonarr

This commit is contained in:
Qstick 2017-10-07 02:47:28 -04:00
parent 52e3d96f4a
commit 023452e1c3
12 changed files with 244 additions and 69 deletions

View file

@ -0,0 +1,17 @@
let currentPopulator = null;
export function registerPagePopulator(populator) {
currentPopulator = populator;
}
export function unregisterPagePopulator(populator) {
if (currentPopulator === populator) {
currentPopulator = null;
}
}
export function repopulatePage() {
if (currentPopulator) {
currentPopulator();
}
}