diff --git a/solr/webapp/web/solrUi/src/app/modules/common/pipes/sizeconverter/size-unit-converter-pipe.pipe.ts b/solr/webapp/web/solrUi/src/app/modules/common/pipes/sizeconverter/size-unit-converter-pipe.pipe.ts index 89e45735652..7d8c2086816 100644 --- a/solr/webapp/web/solrUi/src/app/modules/common/pipes/sizeconverter/size-unit-converter-pipe.pipe.ts +++ b/solr/webapp/web/solrUi/src/app/modules/common/pipes/sizeconverter/size-unit-converter-pipe.pipe.ts @@ -41,7 +41,7 @@ export class SizeUnitConverterPipe implements PipeTransform { ; let power = Math.round(Math.log(sizeValue) / Math.log(this.base)); - let unit = isLong ? this.unitNames[power].short : this.unitNames[power].long; + let unit = isLong ? this.unitNames[power].long : this.unitNames[power].short; let size = Math.round((sizeValue / Math.pow(this.base, power) ) * this.decimalBase) / this.decimalBase; return `${size} ${unit}`; diff --git a/solr/webapp/web/solrUi/src/environments/environment.development.ts b/solr/webapp/web/solrUi/src/environments/environment.development.ts new file mode 100644 index 00000000000..8c337d88fd3 --- /dev/null +++ b/solr/webapp/web/solrUi/src/environments/environment.development.ts @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +export const environment = { + production: false, + apiUrl: 'http://localhost:8080/', +}; diff --git a/solr/webapp/web/solrUi/src/environments/environment.ts b/solr/webapp/web/solrUi/src/environments/environment.ts new file mode 100644 index 00000000000..55f38722466 --- /dev/null +++ b/solr/webapp/web/solrUi/src/environments/environment.ts @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +export const environment = { + production: true, + apiUrl: location.origin, +};