mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-18 08:21:37 +00:00
debug
This commit is contained in:
@@ -226,7 +226,15 @@ export const Values = (inputOptions: InputOptions): PropertyDecorator => {
|
|||||||
*/
|
*/
|
||||||
export const IsDisplayable = (): ClassDecorator => {
|
export const IsDisplayable = (): ClassDecorator => {
|
||||||
return (target) => {
|
return (target) => {
|
||||||
buildSmartUiDescriptor(target.name, target.prototype);
|
let targetName: string;
|
||||||
|
console.log(target.prototype)
|
||||||
|
console.log(target.toString())
|
||||||
|
if (target.toString().includes(SelfServeType.materializedviewsbuilder)) {
|
||||||
|
targetName = SelfServeType.materializedviewsbuilder;
|
||||||
|
} else if (target instanceof Function) {
|
||||||
|
targetName = target.constructor.name;
|
||||||
|
}
|
||||||
|
buildSmartUiDescriptor(targetName, target.prototype);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -238,8 +246,10 @@ export const IsDisplayable = (): ClassDecorator => {
|
|||||||
export const RefreshOptions = (refreshParams: RefreshParams): ClassDecorator => {
|
export const RefreshOptions = (refreshParams: RefreshParams): ClassDecorator => {
|
||||||
console.log(refreshParams)
|
console.log(refreshParams)
|
||||||
return (target) => {
|
return (target) => {
|
||||||
|
console.log(target.prototype);
|
||||||
|
console.log(target.toString())
|
||||||
let targetName: string;
|
let targetName: string;
|
||||||
if (target.constructor.toString().includes(SelfServeType.materializedviewsbuilder)) {
|
if (target.toString().includes(SelfServeType.materializedviewsbuilder)) {
|
||||||
targetName = SelfServeType.materializedviewsbuilder;
|
targetName = SelfServeType.materializedviewsbuilder;
|
||||||
} else if (target instanceof Function) {
|
} else if (target instanceof Function) {
|
||||||
targetName = target.constructor.name;
|
targetName = target.constructor.name;
|
||||||
|
|||||||
Reference in New Issue
Block a user