Member Group edit view - minor styles (#543)

minor style tidyup

Co-authored-by: Mads Rasmussen <madsr@hey.com>
This commit is contained in:
Nathan Woulfe
2023-02-25 00:48:09 +10:00
committed by GitHub
parent 1e1e3cbd79
commit f9ad636344
3 changed files with 7 additions and 4 deletions

View File

@@ -39,8 +39,9 @@ export class UmbWorkspaceMemberGroupContext
this.#data.update({ name });
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
setPropertyValue(alias: string, value: string) {
// Not implemented for this context - member groups have no properties
// Not implemented for this context - member groups have no properties for editing
return;
}

View File

@@ -42,7 +42,6 @@ export class UmbWorkspaceViewMemberGroupInfoElement extends UmbLitElement {
// TODO: Figure out if this is the best way to consume the context or if it can be strongly typed with an UmbContextToken
this.consumeContext<UmbWorkspaceMemberGroupContext>('umbWorkspaceContext', (instance) => {
this.#workspaceContext = instance;
console.log(instance);
this.#observeMemberGroup();
});
}
@@ -69,11 +68,10 @@ export class UmbWorkspaceViewMemberGroupInfoElement extends UmbLitElement {
`;
}
// TODO => should use umb-empty-state when it exists
private _renderMemberGroupInfo() {
return html`
<uui-box headline="Member Group">
<p>Member groups have no additional properties for editing.</p>
<umb-empty-state size="small">Member groups have no additional properties for editing.</umb-empty-state>
</uui-box>
`;
}

View File

@@ -29,6 +29,10 @@ export class UmbWorkspacePropertyLayoutElement extends LitElement {
border-bottom:none;
}
:host(:first-of-type) {
padding-top:0;
}
p {
margin-bottom: 0;
}