mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-02 14:33:52 +01:00
debug
This commit is contained in:
parent
ca641b2ff5
commit
0559ec5cb1
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user