@@ -8,13 +8,14 @@ using CommunityToolkit.Mvvm.Messaging;
|
||||
using Wino.Core.Domain;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
using Wino.Core.Domain.Models.Navigation;
|
||||
using Wino.Core.ViewModels.Data;
|
||||
using Wino.Mail.ViewModels.Data;
|
||||
using Wino.Messaging.Client.Navigation;
|
||||
using Wino.Messaging.UI;
|
||||
|
||||
namespace Wino.Mail.ViewModels
|
||||
{
|
||||
public partial class MergedAccountDetailsPageViewModel : BaseViewModel,
|
||||
public partial class MergedAccountDetailsPageViewModel : MailBaseViewModel,
|
||||
IRecipient<MergedInboxRenamed>
|
||||
{
|
||||
[ObservableProperty]
|
||||
@@ -49,15 +50,17 @@ namespace Wino.Mail.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
private readonly IMailDialogService _dialogService;
|
||||
private readonly IAccountService _accountService;
|
||||
private readonly IPreferencesService _preferencesService;
|
||||
private readonly IProviderService _providerService;
|
||||
|
||||
public MergedAccountDetailsPageViewModel(IDialogService dialogService,
|
||||
public MergedAccountDetailsPageViewModel(IMailDialogService dialogService,
|
||||
IAccountService accountService,
|
||||
IPreferencesService preferencesService,
|
||||
IProviderService providerService) : base(dialogService)
|
||||
IProviderService providerService)
|
||||
{
|
||||
_dialogService = dialogService;
|
||||
_accountService = accountService;
|
||||
_preferencesService = preferencesService;
|
||||
_providerService = providerService;
|
||||
@@ -68,7 +71,7 @@ namespace Wino.Mail.ViewModels
|
||||
{
|
||||
if (EditingMergedAccount == null) return;
|
||||
|
||||
var isConfirmed = await DialogService.ShowConfirmationDialogAsync(Translator.DialogMessage_UnlinkAccountsConfirmationMessage, Translator.DialogMessage_UnlinkAccountsConfirmationTitle, Translator.Buttons_Yes);
|
||||
var isConfirmed = await _dialogService.ShowConfirmationDialogAsync(Translator.DialogMessage_UnlinkAccountsConfirmationMessage, Translator.DialogMessage_UnlinkAccountsConfirmationTitle, Translator.Buttons_Yes);
|
||||
|
||||
if (!isConfirmed) return;
|
||||
|
||||
@@ -110,7 +113,7 @@ namespace Wino.Mail.ViewModels
|
||||
{
|
||||
if (EditingMergedAccount == null) return;
|
||||
|
||||
var newName = await DialogService.ShowTextInputDialogAsync(EditingMergedAccount.MergedInbox.Name,
|
||||
var newName = await _dialogService.ShowTextInputDialogAsync(EditingMergedAccount.MergedInbox.Name,
|
||||
Translator.DialogMessage_RenameLinkedAccountsTitle,
|
||||
Translator.DialogMessage_RenameLinkedAccountsMessage,
|
||||
Translator.FolderOperation_Rename);
|
||||
|
||||
Reference in New Issue
Block a user