Turn on accent for save button when unsaved work
This commit is contained in:
@@ -111,10 +111,16 @@ class CreatePDFReportViewModel : BaseViewModel, ICanCheckShutdown, ILogger
|
||||
_isCreatingPDF = value;
|
||||
NotifyPropertyChanged();
|
||||
NotifyPropertyChanged(nameof(IsCreatePDFButtonEnabled));
|
||||
NotifyPropertyChanged(nameof(CanAddItem));
|
||||
NotifyPropertyChanged(nameof(CanAddItem));
|
||||
NotifyPropertyChanged(nameof(IsSaveButtonAccentOn));
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsSaveButtonAccentOn
|
||||
{
|
||||
get => !_isCreatingPDF && HasUnsavedWork;
|
||||
}
|
||||
|
||||
public bool IsCreatePDFButtonEnabled
|
||||
{
|
||||
get => !_isCreatingPDF && _pdfReport.Files.Count > 0;
|
||||
@@ -133,6 +139,7 @@ class CreatePDFReportViewModel : BaseViewModel, ICanCheckShutdown, ILogger
|
||||
{
|
||||
_hasUnsavedWork = value;
|
||||
NotifyPropertyChanged();
|
||||
NotifyPropertyChanged(nameof(IsSaveButtonAccentOn));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user