mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 09:51:11 +00:00
refactor documentTab code
This commit is contained in:
@@ -13,6 +13,7 @@ export default class DocumentId {
|
||||
public partitionKeyValue: any;
|
||||
public stringPartitionKeyValue: string;
|
||||
public isDirty: ko.Observable<boolean>;
|
||||
public _partitionKeyValue: string;
|
||||
|
||||
constructor(container: DocumentsTab, data: any, partitionKeyValue: any) {
|
||||
this.container = container;
|
||||
@@ -27,13 +28,6 @@ export default class DocumentId {
|
||||
this.isDirty = ko.observable(false);
|
||||
}
|
||||
|
||||
// public click() {
|
||||
// if (!this.container.isEditorDirty() || window.confirm("Your unsaved changes will be lost.")) {
|
||||
// this.loadDocument();
|
||||
// }
|
||||
// return;
|
||||
// }
|
||||
|
||||
public partitionKeyHeader(): Object {
|
||||
if (!this.partitionKeyProperty) {
|
||||
return undefined;
|
||||
@@ -64,8 +58,4 @@ export default class DocumentId {
|
||||
|
||||
return JSON.stringify(partitionKeyValue);
|
||||
}
|
||||
|
||||
// public async loadDocument(): Promise<void> {
|
||||
// await this.container.selectDocument(this);
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user