Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/ServicePulse.Host/app/js/views/failed_messages/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,6 @@
});
}

vm.debugInServiceInsight = function (index) {
var messageId = vm.failedMessages[index].message_id;
var dnsName = scConfig.service_control_url.toLowerCase();

if (dnsName.indexOf("https") === 0) {
dnsName = dnsName.replace("https://", "");
} else {
dnsName = dnsName.replace("http://", "");
}

$window.open("si://" + dnsName + "?search=" + messageId);
};

var selectGroupInternal = function (group, sort, direction, changeToMessagesTab) {
if ($scope.loadingData) {
return;
Expand Down
2 changes: 2 additions & 0 deletions src/ServicePulse.Host/app/js/views/message/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$scope,
$routeParams,
$moment,
$window,
scConfig,
toastService,
serviceControlService,
Expand Down Expand Up @@ -134,6 +135,7 @@
"$scope",
"$routeParams",
"$moment",
"$window",
"scConfig",
"toastService",
"serviceControlService",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<button type="button" ng-hide="vm.message.archived" ng-disabled="vm.message.retried || vm.message.resolved" class="btn btn-default" confirm-title="Are you sure you want to archive this message?" confirm-message="If you archive, this message won't be available for retrying unless it is later unarchived." confirm-click="vm.archiveMessage()"><i class="fa fa-archive"></i> Archive message</button>
<button type="button" ng-hide="!vm.message.archived" class="btn btn-default" confirm-title="Are you sure you want to un-archive this message?" confirm-message="Unarchived message will be moved back to the list of failed messages." confirm-click="vm.unarchiveMessage()"><i class="fa fa-undo"></i> Unarchive</button>
<button type="button" ng-disabled="vm.message.retried || vm.message.archived || vm.message.resolved" class="btn btn-default" confirm-title="Are you sure you want to retry this message?" confirm-message="Are you sure you want to retry this message?" confirm-click="vm.retryMessage()"><i class="fa fa-refresh"></i> Retry message</button>
<button type="button" class="btn btn-default" ng-click="debugInServiceInsight($index)"><img src="img/si-icon.svg"> View in ServiceInsight</button>
<button type="button" class="btn btn-default" ng-click="vm.debugInServiceInsight($index)"><img src="img/si-icon.svg"> View in ServiceInsight</button>
</div>
</div>
</div>
Expand Down
13 changes: 0 additions & 13 deletions src/ServicePulse.Host/app/js/views/pending_retries/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,6 @@
vm.loadMoreResults();
};

vm.debugInServiceInsight = function(index) {
var messageId = vm.pendingRetryMessages[index].message_id;
var dnsName = scConfig.service_control_url.toLowerCase();

if (dnsName.indexOf("https") === 0) {
dnsName = dnsName.replace("https://", "");
} else {
dnsName = dnsName.replace("http://", "");
}

$window.open("si://" + dnsName + "?search=" + messageId);
};

var selectGroupInternal = function(sort, direction) {
if ($scope.loadingData) {
return;
Expand Down