Skip to content

Commit

Permalink
v8: Change button style for "create package" and "show more" (in the …
Browse files Browse the repository at this point in the history
…log viewer) (#6428)
  • Loading branch information
bjarnef authored and nul800sebastiaan committed Sep 29, 2019
1 parent fa0bdd5 commit 795b64d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
function LogViewerOverviewController($q, $location, $timeout, logViewerResource, navigationService) {

var vm = this;

vm.loading = false;
vm.canLoadLogs = false;
vm.searches = [];
Expand Down Expand Up @@ -50,6 +51,7 @@
vm.searchLogQuery = searchLogQuery;
vm.findMessageTemplate = findMessageTemplate;
vm.searchErrors = searchErrors;
vm.showMore = showMore;

function preFlightCheck(){
vm.loading = true;
Expand All @@ -66,6 +68,9 @@
});
}

function showMore() {
vm.commonLogMessagesCount += 10;
}

function init() {

Expand Down
23 changes: 14 additions & 9 deletions src/Umbraco.Web.UI.Client/src/views/logviewer/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,22 @@
<em>Total Unique Message types</em>: {{ vm.commonLogMessages.length }}
<table class="table table-hover">
<tbody>
<tr ng-repeat="template in vm.commonLogMessages | limitTo:vm.commonLogMessagesCount" ng-click="vm.findMessageTemplate(template)" style="cursor: pointer;">
<td>
{{ template.MessageTemplate }}
</td>
<td>
{{ template.Count }}
</td>
</tr>
<tr ng-repeat="template in vm.commonLogMessages | limitTo:vm.commonLogMessagesCount" ng-click="vm.findMessageTemplate(template)" style="cursor: pointer;">
<td>
{{ template.MessageTemplate }}
</td>
<td>
{{ template.Count }}
</td>
</tr>
</tbody>
</table>
<a class="btn btn-primary" ng-if="vm.commonLogMessagesCount < vm.commonLogMessages.length" ng-click="vm.commonLogMessagesCount = vm.commonLogMessagesCount +10">Show More</a>
<umb-button ng-if="vm.commonLogMessagesCount < vm.commonLogMessages.length"
button-style="action"
type="button"
action="vm.showMore()"
label="Show More">
</umb-button>
</umb-box-content>
</umb-box>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
vm.deleteSavedSearch = deleteSavedSearch;
vm.back = back;


function init() {

//If we have a Querystring set for lq (log query)
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/logviewer/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
</umb-editor-sub-header>
</form>

<div class=" ng-if="!vm.loading">
<div ng-if="!vm.loading">

<div class="">
<div>

<!-- Loader for the main logs content when paging -->
<umb-load-indicator ng-if="vm.logsLoading"></umb-load-indicator>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<umb-editor-sub-header-content-left>
<umb-button
button-style="success"
button-style="action"
type="button"
action="vm.createPackage()"
label="Create package"
Expand Down

0 comments on commit 795b64d

Please sign in to comment.