Skip to content

Commit ace2eb8

Browse files
committed
Merge branch 'server-keystore-fix' into 'main'
fixing a bug in the Archive Editor when adding entries that are segregated by name See merge request weblogic-cloud/weblogic-toolkit-ui!261
2 parents 83e3129 + 80c9326 commit ace2eb8

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

webui/src/js/utils/wdt-archive-helper.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ define(['knockout', 'models/wkt-project', 'utils/wkt-logger'],
4848
break;
4949
}
5050

51-
if (archiveEntry.segregatedName) {
52-
options.segregatedName = otherArgs.segregationName;
51+
if (otherArgs.segregatedName) {
52+
options.segregatedName = otherArgs.segregatedName;
5353
}
5454

5555
if (archiveEntryTypeName === 'custom' && !!otherArgs.customPath) {
5656
options.customPath = otherArgs.customPath;
5757
}
58-
5958
return options;
6059
};
6160

webui/src/js/viewModels/add-to-archive-selection-dialog.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ function(accUtils, ko, i18n, project, dialogHelper, archiveHelper, viewHelper, A
109109
return undefined;
110110
}, this);
111111

112-
this.segregationName = ko.observable();
113-
this.segregationLabel = ko.computed(() => {
112+
this.segregatedName = ko.observable();
113+
this.segregatedLabel = ko.computed(() => {
114114
const entry = this.archiveEntry();
115115
if (!!entry) {
116116
return entry.segregatedLabel;
117117
}
118118
return undefined;
119119
}, this);
120-
this.segregationHelp = ko.computed(() => {
120+
this.segregatedHelp = ko.computed(() => {
121121
const entry = this.archiveEntry();
122122
if (!!entry) {
123123
return entry.segregatedHelp;
@@ -180,7 +180,7 @@ function(accUtils, ko, i18n, project, dialogHelper, archiveHelper, viewHelper, A
180180
this.archiveEntryTypeSubtype(newEntry.subtype);
181181
this.fileOrDirectory('file');
182182
this.fileNameSourcePath(undefined);
183-
this.segregationName(undefined);
183+
this.segregatedName(undefined);
184184
this.emptyDirValue(undefined);
185185
this.customPathValue(undefined);
186186
};
@@ -231,7 +231,7 @@ function(accUtils, ko, i18n, project, dialogHelper, archiveHelper, viewHelper, A
231231
const options = archiveHelper.buildAddToArchiveOptions(this.archiveEntryType(), this.archiveEntry(),
232232
this.fileNameSourcePath(), this.fileOrDirectory(), {
233233
emptyDirName: this.emptyDirValue(),
234-
segregationName: this.segregationName(),
234+
segregatedName: this.segregatedName(),
235235
customPath: this.customPathValue()
236236
});
237237

webui/src/js/views/add-to-archive-selection-dialog.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
</oj-select-single>
1919

2020
<oj-bind-if test="[[showSegregatedNameField() === true]]">
21-
<oj-input-text label-hint="{{segregationLabel}}"
22-
value="{{segregationName}}"
21+
<oj-input-text label-hint="{{segregatedLabel}}"
22+
value="{{segregatedName}}"
2323
validators="[[[segregatedNameValidator]]]"
24-
help.instruction="{{segregationHelp}}"
24+
help.instruction="{{segregatedHelp}}"
2525
required="true">
2626
</oj-input-text>
2727
</oj-bind-if>

0 commit comments

Comments
 (0)