Update Group Management Button

The "✏️ Manage Group " mwc action button in the Groups plugin is updated to the "warning" class.  That changes the color from blue to yellow.  Easier to differentiate the action.
This commit is contained in:
Pigpig105 2023-04-13 21:54:38 -04:00 committed by GitHub
parent 5fdcdccdb5
commit 77c2bf6b71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2674,9 +2674,9 @@ class GroupManagement extends LitElement {
renderManageButton(groupObj) {
if (groupObj.owner === this.selectedAddress.address) {
return html`<mwc-button @click=${() => this.manageGroupOwner(groupObj)}><mwc-icon>create</mwc-icon>&nbsp;${translate("grouppage.gchange40")}</mwc-button>`
return html`<mwc-button class="warning" @click=${() => this.manageGroupOwner(groupObj)}><mwc-icon>create</mwc-icon>&nbsp;${translate("grouppage.gchange40")}</mwc-button>`
} else if (groupObj.isAdmin === true) {
return html`<mwc-button @click=${() => this.manageGroupAdmin(groupObj)}><mwc-icon>create</mwc-icon>&nbsp;${translate("grouppage.gchange40")}</mwc-button>`
return html`<mwc-button class="warning" @click=${() => this.manageGroupAdmin(groupObj)}><mwc-icon>create</mwc-icon>&nbsp;${translate("grouppage.gchange40")}</mwc-button>`
} else {
return html`<mwc-button @click=${() => this.leaveGroup(groupObj)}><mwc-icon>exit_to_app</mwc-icon>&nbsp;${translate("grouppage.gchange50")}</mwc-button>`
}