Skip to content

Commit

Permalink
fix(webapp): hide link for history incidents w/o configuration
Browse files Browse the repository at this point in the history
related to #4221
  • Loading branch information
danielkelemen committed Jun 24, 2024
1 parent fba860b commit 44d6fb9
Showing 1 changed file with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@
it would be great to be able to copy the stacktrace from here
using the clipboard widget but it comes from an API endpoint...
-->
<a ng-if="incident.rootCauseIncidentMessage"
ng-click="viewVariable(incident)"
uib-tooltip="{{'PLUGIN_INCIDENTS_TAB_TOOLTIP_STACKTRACE'|translate}}"
tooltip-placement="top"
class="auto-cutoff">
{{ incident.rootCauseIncidentMessage }}
</a>
<div ng-if="incident.rootCauseIncidentMessage">
<a ng-if="incidentsContext !== 'history' || incident.historyConfiguration"
ng-click="viewVariable(incident)"
uib-tooltip="{{'PLUGIN_INCIDENTS_TAB_TOOLTIP_STACKTRACE'|translate}}"
tooltip-placement="top"
class="auto-cutoff">
{{ incident.rootCauseIncidentMessage }}
</a>
<span ng-if="incidentsContext === 'history' && !incident.historyConfiguration"
uib-tooltip="{{'PLUGIN_INCIDENTS_TAB_TOOLTIP_STACKTRACE'|translate}}"
tooltip-placement="top"
class="auto-cutoff">
{{ incident.rootCauseIncidentMessage }}
</span>
</div>
<a ng-if="!incident.rootCauseIncidentMessage"
ng-click="viewVariable(incident)"
uib-tooltip="{{'PLUGIN_INCIDENTS_TAB_TOOLTIP_STACKTRACE'|translate}}"
Expand Down

0 comments on commit 44d6fb9

Please sign in to comment.