From 026241f1600491ddc5f57a701132b04ce2fa6dda Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 30 Jan 2015 13:24:24 +0100 Subject: [PATCH] BUG-1741: Improvements of the Confluence plug-in: don't show the page-picker if no pages are currently shown (in IE) and disable the search button while there is nothing to search for. --- .../Forms/ConfluencePagePicker.xaml.cs | 5 +++-- GreenshotConfluencePlugin/Forms/ConfluenceSearch.xaml | 4 ++-- .../Forms/ConfluenceSearch.xaml.cs | 10 ++++++++-- GreenshotConfluencePlugin/Forms/ConfluenceUpload.xaml | 6 +++--- .../Forms/ConfluenceUpload.xaml.cs | 9 ++++++++- 5 files changed, 24 insertions(+), 10 deletions(-) diff --git a/GreenshotConfluencePlugin/Forms/ConfluencePagePicker.xaml.cs b/GreenshotConfluencePlugin/Forms/ConfluencePagePicker.xaml.cs index f19bb8f29..e2da8864b 100644 --- a/GreenshotConfluencePlugin/Forms/ConfluencePagePicker.xaml.cs +++ b/GreenshotConfluencePlugin/Forms/ConfluencePagePicker.xaml.cs @@ -20,6 +20,7 @@ */ using System; using Confluence; +using System.Collections.Generic; namespace GreenshotConfluencePlugin { /// @@ -29,9 +30,9 @@ namespace GreenshotConfluencePlugin { private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(ConfluencePagePicker)); private ConfluenceUpload confluenceUpload = null; - public ConfluencePagePicker(ConfluenceUpload confluenceUpload) { + public ConfluencePagePicker(ConfluenceUpload confluenceUpload, List pagesToPick) { this.confluenceUpload = confluenceUpload; - this.DataContext = ConfluenceUtils.GetCurrentPages(); + this.DataContext = pagesToPick; InitializeComponent(); } diff --git a/GreenshotConfluencePlugin/Forms/ConfluenceSearch.xaml b/GreenshotConfluencePlugin/Forms/ConfluenceSearch.xaml index 6c200f53b..e30f9ab6e 100644 --- a/GreenshotConfluencePlugin/Forms/ConfluenceSearch.xaml +++ b/GreenshotConfluencePlugin/Forms/ConfluenceSearch.xaml @@ -17,8 +17,8 @@