New getUnmaintainedRadioList fn
This commit is contained in:
@@ -258,6 +258,10 @@ Settings.prototype.removeRadio = function(radioName) {
|
||||
return indexRadio;
|
||||
};
|
||||
|
||||
Settings.prototype.getUnmaintainedRadioList = function() {
|
||||
return this.radios.filter(radio => radio.unmaintained);
|
||||
};
|
||||
|
||||
Settings.prototype.updateUnmaintained = function(radioName, unmaintained) {
|
||||
const indexRadio = this.findRadioByName(radioName);
|
||||
if (indexRadio >= 0) {
|
||||
|
||||
@@ -134,6 +134,10 @@ export default function(settings, updateUI) {
|
||||
});
|
||||
};
|
||||
|
||||
// Temp, must be in a separate "service" file, with other "radio" functions
|
||||
const getUnmaintainedRadioList = function() {
|
||||
return settings.getUnmaintainedRadioList();
|
||||
};
|
||||
|
||||
const addRadio = function(data) {
|
||||
let radioWasNotInPlaylist = settings.addRadio(data);
|
||||
@@ -650,6 +654,7 @@ export default function(settings, updateUI) {
|
||||
moveRadio,
|
||||
getRadio,
|
||||
getRadioList,
|
||||
getUnmaintainedRadioList,
|
||||
getSupportedRadios,
|
||||
getServerList,
|
||||
togglePlay,
|
||||
|
||||
Reference in New Issue
Block a user