mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Add Page Populator from Sonarr
This commit is contained in:
parent
52e3d96f4a
commit
023452e1c3
12 changed files with 244 additions and 69 deletions
17
frontend/src/Utilities/pagePopulator.js
Normal file
17
frontend/src/Utilities/pagePopulator.js
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue