UBERF-7996 Hide github project attributes (#6444)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-08-29 23:50:27 +07:00 committed by GitHub
parent 387aecd12e
commit 699e553e83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,9 @@
export let value: Ref<Class<Doc>>
const client = getClient()
const _class = client.getModel().getObject(value)
const _class = value !== undefined ? client.getModel().getObject(value) : undefined
</script>
<Label label={_class.label} />
{#if _class}
<Label label={_class.label} />
{/if}

View File

@ -355,25 +355,31 @@ export class TGithubAuthentication extends TPreference implements GithubAuthenti
export class TGithubProject extends TProject implements GithubProject {
@Prop(TypeRef(github.class.GithubIntegration), getEmbeddedLabel('Integration'))
@ReadOnly()
@Hidden()
integration!: Ref<GithubIntegration>
@Prop(ArrOf(TypeRef(github.class.GithubIntegrationRepository)), getEmbeddedLabel('Repositories'))
@ReadOnly()
@Hidden()
repositories!: Ref<GithubIntegrationRepository>[]
@Prop(TypeString(), getEmbeddedLabel('NodeID'))
@ReadOnly()
@Hidden()
projectNodeId!: string
@Prop(TypeNumber(), getEmbeddedLabel('Number'))
@ReadOnly()
@Hidden()
projectNumber!: number
@Prop(TypeRef(core.class.Class), getEmbeddedLabel('Attribute Class'))
@ReadOnly()
@Hidden()
mixinClass!: Ref<Class<GithubIssue>>
@Prop(ArrOf(TypeRecord()), getEmbeddedLabel('Field mappings'))
@Hidden()
// Mapping of all fields in this project.
mappings!: GithubFieldMapping[]
}