|
@@ -33,6 +33,7 @@ using InABox.Wpf;
|
|
|
using System.Collections.ObjectModel;
|
|
|
using System.Windows.Data;
|
|
|
using PRSDesktop.Panels.DataEntry;
|
|
|
+using InABox.Wpf.Editors;
|
|
|
|
|
|
namespace PRSDesktop;
|
|
|
|
|
@@ -474,6 +475,9 @@ public partial class DataEntryList : UserControl, ICorePanel, IDockPanel
|
|
|
_changeTag.Visibility = _dataEntryGrid.SelectedRows.Any() && _tags.Any() && (Security.CanEdit<DataEntryDocument>() || Security.IsAllowed<CanSetupDataEntryTags>())
|
|
|
? Visibility.Visible
|
|
|
: Visibility.Collapsed;
|
|
|
+ _changeNote.Visibility = _dataEntryGrid.SelectedRows.Any() && Security.CanEdit<DataEntryDocument>()
|
|
|
+ ? Visibility.Visible
|
|
|
+ : Visibility.Collapsed;
|
|
|
|
|
|
_changetagseparator.Visibility = _archive.Visibility;
|
|
|
|
|
@@ -579,6 +583,15 @@ public partial class DataEntryList : UserControl, ICorePanel, IDockPanel
|
|
|
_historyGrid.DoReopen();
|
|
|
}
|
|
|
|
|
|
+ private void _changeNote_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ string note = "";
|
|
|
+ if(TextEdit.Execute("Enter note:", ref note))
|
|
|
+ {
|
|
|
+ _dataEntryGrid.DoChangeNote(note);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void _dataEntryGrid_OnContextMenuOpening(object sender, ContextMenuEventArgs e)
|
|
|
{
|
|
|
|