mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
New: button on update notification to go to change log
This commit is contained in:
parent
5fa62965fb
commit
76acc8ffa6
@ -93,8 +93,8 @@ private string GetIndexText()
|
|||||||
text = text.Replace("API_KEY", API_KEY);
|
text = text.Replace("API_KEY", API_KEY);
|
||||||
text = text.Replace("APP_VERSION", BuildInfo.Version.ToString());
|
text = text.Replace("APP_VERSION", BuildInfo.Version.ToString());
|
||||||
text = text.Replace("APP_BRANCH", _configFileProvider.Branch.ToLower());
|
text = text.Replace("APP_BRANCH", _configFileProvider.Branch.ToLower());
|
||||||
|
|
||||||
text = text.Replace("APP_ANALYTICS", _analyticsService.IsEnabled.ToString().ToLowerInvariant());
|
text = text.Replace("APP_ANALYTICS", _analyticsService.IsEnabled.ToString().ToLowerInvariant());
|
||||||
|
text = text.Replace("URL_BASE", _configFileProvider.UrlBase);
|
||||||
|
|
||||||
_generatedContent = text;
|
_generatedContent = text;
|
||||||
|
|
||||||
|
@ -46,7 +46,17 @@ define(
|
|||||||
messenger.show({
|
messenger.show({
|
||||||
message : 'Sonarr has been updated',
|
message : 'Sonarr has been updated',
|
||||||
hideAfter : 0,
|
hideAfter : 0,
|
||||||
id : 'droneUpdated'
|
id : 'droneUpdated',
|
||||||
|
actions : {
|
||||||
|
viewChanges: {
|
||||||
|
label: 'View Changes',
|
||||||
|
action: function() {
|
||||||
|
//TODO: UrlBase
|
||||||
|
window.location = window.NzbDrone.UrlBase + 'system/updates';
|
||||||
|
//Backbone.history.navigate('/system/updates', { trigger: true });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
vent.trigger(vent.Events.ServerUpdated);
|
vent.trigger(vent.Events.ServerUpdated);
|
||||||
|
@ -76,11 +76,12 @@
|
|||||||
<div id="errors"></div>
|
<div id="errors"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.NzbDrone = {
|
window.NzbDrone = {
|
||||||
ApiRoot: 'API_ROOT',
|
ApiRoot : 'API_ROOT',
|
||||||
ApiKey : 'API_KEY',
|
ApiKey : 'API_KEY',
|
||||||
Version: 'APP_VERSION',
|
Version : 'APP_VERSION',
|
||||||
Branch : 'APP_BRANCH',
|
Branch : 'APP_BRANCH',
|
||||||
Analytics: APP_ANALYTICS
|
Analytics : APP_ANALYTICS,
|
||||||
|
UrlBase : 'URL_BASE'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user