Skip to content

Commit

Permalink
fix: remove needless services from campaign thread
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystianKempski committed Nov 21, 2024
1 parent f009943 commit dd56750
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 51 deletions.
41 changes: 0 additions & 41 deletions DA_Models/ChatModels/SignalRHub .cs

This file was deleted.

2 changes: 1 addition & 1 deletion DagoniteEmpire/Pages/CharacterPages/CharacterUpsert.razor
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
AllParams.Profession = new();
AllParams.EquipmentSlots = new List<EquipmentSlotDTO>();
AllParams.Character.UserName = UserInfo?.UserName;
IsDukeAllowed = (UserInfo?.Role == SD.Role_DukePlayer);
IsDukeAllowed = (UserInfo?.Role == SD.Role_DukePlayer || UserInfo?.IsAdminOrMG == true);

if (IsDukeAllowed == false)
AllParams.Character.NPCType = SD.NPCType.Hero;
Expand Down
1 change: 0 additions & 1 deletion DagoniteEmpire/Pages/Chat/CampaignList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
@inject CallbackService callbackService
@implements IDisposable

@using Microsoft.AspNetCore.SignalR.Client;
<PageTitle>Dagonie Empire | Campaigns</PageTitle>
<MudContainer Class="px-3" Fixed="false">
@if (IsLoading == true){
Expand Down
1 change: 0 additions & 1 deletion DagoniteEmpire/Pages/Chat/ChapterList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
@inject CallbackService _callbackService
@implements IDisposable
<PageTitle>Dagonie Empire | Chapters</PageTitle>
@using Microsoft.AspNetCore.SignalR.Client;
@using BreadcrumbItem = MudBlazor.BreadcrumbItem;

<MudContainer Class="pr-1" Fixed="false">
Expand Down
5 changes: 0 additions & 5 deletions DagoniteEmpire/Pages/Chat/ChapterThread.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@page "/chapter/{id:int}"
@using DA_Business.Services.Interfaces
@using Syncfusion.Blazor.Navigations;
@inject NavigationManager _navigationManager
@inject ISnackbar SnackBar
@inject IDialogService DialogService
Expand All @@ -23,15 +22,11 @@
@inject IEquipmentSlotRepository _equipmentSlotRepository
@inject IPostRepository _postRepository
@inject IUserService _userService
@inject IChatManager _chatManager
@inject ICampaignRepository _campaignRepository
@inject IBrowserViewportService _vieportService
@inject IFileUpload _fileUpload;
@inject IScrollManager _scrollManager
@inject CallbackService _callbackService
@implements IDisposable

@using Microsoft.AspNetCore.SignalR.Client;
@using BreadcrumbItem = MudBlazor.BreadcrumbItem;
<PageTitle>Dagonie Empire | Thread</PageTitle>
@if (IsLoading == true)
Expand Down
2 changes: 1 addition & 1 deletion DagoniteEmpire/Shared/CharacterNavButtons.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.SignalR.Client

@inject IChatManager _chatManager
@inject IJSRuntime _jsRuntime
@inject ISnackbar _snackBar
Expand Down
2 changes: 1 addition & 1 deletion DagoniteEmpire/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using DA_Business.Services
@using Microsoft.AspNetCore.SignalR.Client

@inject ISnackbar _snackBar
@inject IJSRuntime _jsRuntime
@inject IUserService _userService
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit dd56750

Please sign in to comment.