addDatabasePane provide backward compatibility

This commit is contained in:
hardiknai-techm
2021-04-24 13:39:13 +05:30
parent 42552bad07
commit 28bbba5522
6 changed files with 237 additions and 239 deletions

View File

@@ -19,9 +19,9 @@
</div>
<!-- Loader - End -->
</div>
</div>
</div>
<script type="text/html" id="add-database-inputs">
<script type="text/html" id="add-database-inputs">
<!-- Add database header - Start -->
<div class="firstdivbg headerline">
<span id="databaseTitle" role="heading" aria-level="2" data-bind="text: title"></span>
@@ -171,4 +171,4 @@
</div>
</div>
<!-- Add database inputs - End -->
</script>
</script>

View File

@@ -71,7 +71,8 @@ export default class AddDatabasePane extends ContextualPaneBase {
this.databaseIdTooltipText = ko.computed<string>(() => {
const isCassandraAccount: boolean = userContext.apiType === "Cassandra";
return `A ${isCassandraAccount ? "keyspace" : "database"} is a logical container of one or more ${isCassandraAccount ? "tables" : "collections"
return `A ${isCassandraAccount ? "keyspace" : "database"} is a logical container of one or more ${
isCassandraAccount ? "tables" : "collections"
}`;
});
this.databaseLevelThroughputTooltipText = ko.computed<string>(() => {

View File

@@ -614,7 +614,7 @@ exports[`AddDatabasePane Pane should render Default properly 1`] = `
}
}
formError=""
id="copynotebookpane"
id="add-database-inputs"
isExecuting={false}
onClose={[Function]}
onSubmit={[Function]}

View File

@@ -7,7 +7,6 @@ import StringInputPaneTemplate from "./StringInputPane.html";
import TableAddEntityPaneTemplate from "./Tables/TableAddEntityPane.html";
import TableEditEntityPaneTemplate from "./Tables/TableEditEntityPane.html";
export class PaneComponent {
constructor(data: any) {
return data.data;

View File

@@ -630,9 +630,7 @@ exports[`Upload Items Pane should render Default properly 1`] = `
multiple={true}
onUpload={[Function]}
tabIndex={0}
tooltip="Select one or more JSON files to upload. Each file can contain a single JSON document or an array of JSON
documents. The combined size of all files in an individual upload operation must be less than 2 MB. You
can perform multiple upload operations for larger data sets."
tooltip="Select one or more JSON files to upload. Each file can contain a single JSON document or an array of JSON documents. The combined size of all files in an individual upload operation must be less than 2 MB. You can perform multiple upload operations for larger data sets."
/>
</div>
</GenericRightPaneComponent>