From 56e356f5bb663200a46b3c0515d424d04d19fe52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Sun, 28 Jan 2024 21:04:31 +0100 Subject: [PATCH] Removing shape override. --- Lombiq.VueJs/Manifest.cs | 6 +---- .../Views/ContentPreview.Button.cshtml | 23 ------------------- Lombiq.VueJs/Views/_ViewImports.cshtml | 2 -- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 Lombiq.VueJs/Views/ContentPreview.Button.cshtml diff --git a/Lombiq.VueJs/Manifest.cs b/Lombiq.VueJs/Manifest.cs index 88fb2352..7414e3b4 100644 --- a/Lombiq.VueJs/Manifest.cs +++ b/Lombiq.VueJs/Manifest.cs @@ -6,9 +6,5 @@ Website = "https://github.com/Lombiq/Orchard-Vue.js", Version = "0.0.1", Description = "Adds Vue.js to Orchard Core.", - Category = "Vue.js", - Dependencies = - [ - "OrchardCore.ContentPreview", - ] + Category = "Vue.js" )] diff --git a/Lombiq.VueJs/Views/ContentPreview.Button.cshtml b/Lombiq.VueJs/Views/ContentPreview.Button.cshtml deleted file mode 100644 index 11a09923..00000000 --- a/Lombiq.VueJs/Views/ContentPreview.Button.cshtml +++ /dev/null @@ -1,23 +0,0 @@ -@* This shape override is a temporary solution that fixes https://github.com/OrchardCMS/OrchardCore/pull/15183 until it is released *@ -@using OrchardCore.ContentManagement -@using OrchardCore.Contents -@inject IAuthorizationService AuthorizationService - -@{ - ContentItem contentItem = Model.ContentItem; - var previewId = Guid.NewGuid(); - var hasPreviewPermission = await AuthorizationService.AuthorizeAsync(User, CommonPermissions.PreviewContent, contentItem); -} - -@if (hasPreviewPermission) -{ - @T["Preview"] -} - - - - - - - - @* #spell-check-ignore-line *@ diff --git a/Lombiq.VueJs/Views/_ViewImports.cshtml b/Lombiq.VueJs/Views/_ViewImports.cshtml index 04cd5ee7..d4f14776 100644 --- a/Lombiq.VueJs/Views/_ViewImports.cshtml +++ b/Lombiq.VueJs/Views/_ViewImports.cshtml @@ -5,5 +5,3 @@ @addTagHelper *, OrchardCore.DisplayManagement @addTagHelper *, OrchardCore.ResourceManagement @addTagHelper *, Lombiq.VueJs - -@using Microsoft.AspNetCore.Authorization