backup-log-view: Make Complete Log expandable and with an icon to copy the content

This commit is contained in:
Mikael Mello
2018-12-07 15:59:18 -02:00
parent aa71b888c3
commit 732e670d89
3 changed files with 11 additions and 4467 deletions
@@ -212,11 +212,6 @@ wait-area {
.four {
grid-row: 3;
margin-bottom: 10px;
.prewrapped-text {
max-height: 200px;
overflow-y: auto;
}
}
}
File diff suppressed because one or more lines are too long
@@ -27,7 +27,14 @@
ng-include="'templates/backup-result/message-list.html'"></span>
</div>
<div class="box item wide four">
<span class="key" translate>Complete log</span>
<div class="prewrapped-text exceptiontext">{{ item.Formatted }}</div>
<span ng-click="log_expanded = !log_expanded" class="key" ng-style="{ cursor: 'pointer' }" translate>
Complete log
<i class="fa fa-angle-{{log_expanded ? 'up': 'down'}}"></i>
</span>
<a href ng-show="log_expanded" ngclipboard data-clipboard-action="copy" data-clipboard-target="#result-log-{{item.Result.ID}}">
<i class="fa fa-clipboard"></i>
</a>
<div ng-show="log_expanded" id="result-log-{{item.Result.ID}}" class="prewrapped-text exceptiontext">{{ item.Formatted }}</div>
</div>
</div>