|
1 | 1 | /**
|
2 | 2 | * @license
|
3 |
| - * Copyright (c) 2021, 2022, Oracle and/or its affiliates. |
| 3 | + * Copyright (c) 2021, 2023, Oracle and/or its affiliates. |
4 | 4 | * Licensed under The Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl/
|
5 | 5 | */
|
6 | 6 | 'use strict';
|
7 | 7 |
|
8 |
| -define(['accUtils', 'knockout', 'utils/observable-properties', 'utils/i18n', 'ojs/ojarraydataprovider', 'models/wkt-project', |
9 |
| - 'utils/wkt-logger', 'ojs/ojknockout', 'ojs/ojinputtext', 'ojs/ojlabel', 'ojs/ojbutton', 'ojs/ojdialog', 'ojs/ojformlayout', |
10 |
| - 'ojs/ojswitch', 'ojs/ojselectsingle', 'ojs/ojvalidationgroup', 'ojs/ojinputnumber'], |
11 |
| -function(accUtils, ko, utils, i18n, ArrayDataProvider, project, wktLogger) { |
| 8 | +define(['accUtils', 'knockout', 'utils/observable-properties', 'utils/i18n', 'ojs/ojarraydataprovider', |
| 9 | + 'models/wkt-project', 'utils/validation-helper', 'utils/wkt-logger', 'ojs/ojknockout', 'ojs/ojinputtext', |
| 10 | + 'ojs/ojlabel', 'ojs/ojbutton', 'ojs/ojdialog', 'ojs/ojformlayout', 'ojs/ojswitch', 'ojs/ojselectsingle', |
| 11 | + 'ojs/ojvalidationgroup', 'ojs/ojinputnumber'], |
| 12 | +function(accUtils, ko, utils, i18n, ArrayDataProvider, project, validationHelper, wktLogger) { |
12 | 13 | function UserSettingsDialogModel(payload) {
|
13 | 14 |
|
14 | 15 | this.connected = () => {
|
@@ -45,6 +46,7 @@ function(accUtils, ko, utils, i18n, ArrayDataProvider, project, wktLogger) {
|
45 | 46 | return payload.isDevMode;
|
46 | 47 | };
|
47 | 48 |
|
| 49 | + this.getProxyUrlValidators = () => validationHelper.getProxyUrlValidators(); |
48 | 50 | this.proxyUrl = ko.observable();
|
49 | 51 | this.bypassProxyHosts = ko.observable();
|
50 | 52 | this.consoleLogLevel = ko.observable(payload.defaults.level);
|
|
0 commit comments