Skip to content

Commit

Permalink
#1863 mCR/MT edit dialog default width=950px, some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1844 committed Oct 5, 2021
1 parent 0e539df commit a278969
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:form="sap.ui.layout.form">
<Dialog id="upsertConformanceRuleDialog" title="{/newRule/title} Conformance Rule" resizable="true"
draggable="true" class="minW40rem" beforeOpen="onBeforeOpen" afterOpen="onAfterOpen">
draggable="true" beforeOpen="onBeforeOpen" afterOpen="onAfterOpen" contentWidth="950px">
<content>
<form:SimpleForm id="addConformanceRuleForm" adjustLabelSpan="false" editable="true">
<form:content>
Expand Down
7 changes: 1 addition & 6 deletions menas/ui/components/dataset/datasetDetail.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,6 @@ sap.ui.define([

let sFragmentName = "components.dataset.conformanceRule." + oContext.getProperty("_t") + ".display";
if (oContext.getProperty("_t") === "MappingConformanceRule") {

// todo remove debug print
let conf = this._model.getProperty("/currentDataset/conformance")
console.log(`conformance: ${JSON.stringify(conf)}`);

let oAttributeMappings = oContext.getProperty("attributeMappings");
let aJoinConditions = [];
for (let key in oAttributeMappings) {
Expand Down Expand Up @@ -454,7 +449,7 @@ sap.ui.define([
return {
menasRef: e.menasRef
};
})
});
aAuditEntries.unshift({
menasRef: {
name: oCurrentDataset.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:form="sap.ui.layout.form" xmlns:l="sap.ui.layout"
xmlns:table="sap.ui.table" xmlns:cust="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1">
<Dialog id="addDefaultValueDialog" title="{/newDefaultValue/title} Default Value" resizable="true" draggable="true" class="minW40rem">
<Dialog id="addDefaultValueDialog" title="{/newDefaultValue/title} Default Value" resizable="true" draggable="true">
<content>
<form:SimpleForm adjustLabelSpan="true" editable="true">
<form:content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
xmlns:t="sap.ui.table"
xmlns:hdfs="components.hdfs">
<Dialog id="addMappingTableDialog" title="{entity>/title} Mapping Table" resizable="true" draggable="true"
class="minW40rem">
contentWidth="950px">
<content>
<VBox class="sapUiSmallMargin">
<form:SimpleForm adjustLabelSpan="true" editable="true">
Expand Down
2 changes: 1 addition & 1 deletion menas/ui/generic/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var Formatters = new function() {
if (!oDate)
return "";
return this.infoDateFormat.format(oDate)
}
};

this.toStringInfoDate = function(oDate) {
return this.infoDateFormat.format(oDate);
Expand Down
3 changes: 0 additions & 3 deletions menas/ui/service/EntityDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class EntityDialog {

submit() {
let newEntity = this.oDialog.getModel("entity").oData;
console.log(`submitted entity: ${JSON.stringify(newEntity)}`);

if (!newEntity.isEdit && newEntity.name && typeof (newEntity.nameUnique) === "undefined") {
// need to wait for the service call
setTimeout(this.submit.bind(this), 500);
Expand Down Expand Up @@ -515,7 +513,6 @@ class EditMappingTableDialog extends MappingTableDialog {
const current = this.oController._model.getProperty("/currentMappingTable");

const updatedFilters = [FilterTreeUtils.addNiceNamesToFilterData(this.filterEdit.resetFilterDataValidation(current.filter))];
console.log(`current filters: ${JSON.stringify(updatedFilters)}`);

current.isEdit = true;
current.title = "Edit";
Expand Down

0 comments on commit a278969

Please sign in to comment.