Spark-555 2/2 Change the ladder specific even log into a global activity log
This commit is contained in:
1 parent
9199aeb1c3
commit
ae46e7475c
13 files changed
+185
-33
No files matched your search
@@ -11,20 +11,24 @@ using System.Windows.Media;
|
||||
using bts.api;
|
||||
using mbts;
|
||||
using mbts.spark;
|
||||
using System.Reactive.Linq;
|
||||
using static mbts.ui.shell.ProtoBufSerializationHelper;
|
||||
|
||||
namespace bts.Modules.Support {
|
||||
namespace bts.shell {
|
||||
[Export(typeof(IShellModule))]
|
||||
class HelpShellModule : IShellModule {
|
||||
IDisposable _dispose;
|
||||
|
||||
[ImportingConstructor]
|
||||
public HelpShellModule(IBus bus, IBrowserWindowManager browser) {
|
||||
|
||||
_awf = new ActivityWindowFactory(this, bus);
|
||||
_dispose = Disposable.Create(
|
||||
bus.subscribe(SparkTags.ShowUri).Subscribe(u => browser.Pages.Add(u))
|
||||
bus.subscribe(SparkTags.ShowUri).ObserveOnDispatcher().Subscribe(u => browser.Pages.Add(u))
|
||||
);
|
||||
}
|
||||
|
||||
ActivityWindowFactory _awf;
|
||||
|
||||
public ImageSource icon => Icons.Support;
|
||||
|
||||
public string name => "Help";
|
||||
@@ -36,11 +40,12 @@ namespace bts.Modules.Support {
|
||||
//SparkCommands.ShowAuditLogs,
|
||||
//SparkCommands.ShowDiagnostics,
|
||||
SparkCommands.ShowReportIssue.complete("Create Support Ticket"),
|
||||
SparkCommands.ShowAboutSpark
|
||||
SparkCommands.ShowAboutSpark,
|
||||
SparkCommands.ShowActivityLog
|
||||
};
|
||||
|
||||
public Task<IShellWindow> create(Stream load_stream) {
|
||||
throw new NotImplementedException();
|
||||
return dispatch_to_factory(load_stream, _awf);
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
|
||||
Reference in new issue
Block a user