Replaced umb-overlay with editorService for listing fields of an Examine search result (#6862)

This commit is contained in:
Anders Bjerner
2019-12-22 18:28:49 +01:00
committed by Kenn Jacobsen
parent 2c368c2b38
commit 4c96c8be3e
3 changed files with 43 additions and 27 deletions

View File

@@ -26,17 +26,16 @@ function ExamineManagementController($scope, $http, $q, $timeout, $location, umb
function showSearchResultDialog(values) {
if (vm.searchResults) {
localizationService.localize("examineManagement_fieldValues").then(function (value) {
vm.searchResults.overlay = {
editorService.open({
title: value,
searchResultValues: values,
size: "medium",
view: "views/dashboard/settings/examinemanagementresults.html",
close: function () {
vm.searchResults.overlay = null;
editorService.close();
}
};
});
});
}
}

View File

@@ -408,10 +408,4 @@
</div>
</div>
<umb-overlay ng-if="vm.searchResults.overlay"
position="center"
view="vm.searchResults.overlay.view"
model="vm.searchResults.overlay">
</umb-overlay>
</div>

View File

@@ -1,18 +1,41 @@
<div>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th class="score"><localize key="general_field">Field</localize></th>
<th class="id"><localize key="general_value">Value</localize></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(key, val) in model.searchResultValues track by key">
<td>{{key}}</td>
<td>{{val}}</td>
</tr>
</tbody>
</table>
<umb-editor-view>
<umb-editor-header
name="model.title"
hide-icon="true"
hide-alias="true"
name-locked="true"
hide-description="true">
</umb-editor-header>
<umb-editor-container>
<umb-box>
<umb-box-content>
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th class="score"><localize key="general_field">Field</localize></th>
<th class="id"><localize key="general_value">Value</localize></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(key, val) in model.searchResultValues track by key">
<td>{{key}}</td>
<td style="word-break: break-word;">{{val}}</td>
</tr>
</tbody>
</table>
</umb-box-content>
</umb-box>
</umb-editor-container>
<umb-editor-footer>
<umb-editor-footer-content-right>
<umb-button
type="button"
button-style="link"
label-key="general_close"
action="model.close()">
</umb-button>
</umb-editor-footer-content-right>
</umb-editor-footer>
</umb-editor-view>
</div>