U4-8719 - bugfix the redirect dashboard, move to content section

This commit is contained in:
Stephan
2016-09-02 14:54:18 +02:00
parent fa45cd1a88
commit c05a28a901
4 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@
function checkEnabled() {
vm.dashboard.loading = true;
return redirectUrlsResource.getEnableState().then(function (response) {
vm.dashboard.urlTrackerDisabled = response.enabled !== "true";
vm.dashboard.urlTrackerDisabled = response.enabled !== true;
vm.dashboard.admin = response.admin;
vm.dashboard.loading = false;
});

View File

@@ -6,7 +6,7 @@
<umb-editor-sub-header-content-right>
<umb-editor-sub-header-section ng-if="vm.dashboard.admin">
<umb-editor-sub-header-section ng-if="vm.dashboard.admin === true">
<button
ng-if="vm.dashboard.urlTrackerDisabled === false"

View File

@@ -226,7 +226,7 @@ namespace Umbraco.Web.Editors
//API URLs
{
"redirectUrlManagementApiBaseUrl", Url.GetUmbracoApiServiceBaseUrl<RedirectUrlManagementController>(
controller => controller.GetEnabledState())
controller => controller.GetEnableState())
},
{
"embedApiBaseUrl", Url.GetUmbracoApiServiceBaseUrl<RteEmbedController>(

View File

@@ -22,7 +22,7 @@ namespace Umbraco.Web.Editors
/// </summary>
/// <returns></returns>
[HttpGet]
public IHttpActionResult GetEnabledState()
public IHttpActionResult GetEnableState()
{
var enabled = UmbracoConfig.For.UmbracoSettings().WebRouting.DisableRedirectUrlTracking == false;
var admin = Umbraco.UmbracoContext.Security.CurrentUser.Id == 0; // fixme