Skip to content

Commit

Permalink
Show link in reindex snackbar only to owners
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Aug 9, 2024
1 parent 87910d0 commit 515b1c0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/GrampsJs.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,13 @@ export class GrampsJs extends LitElement {
timeoutMs="-1"
labelText="${this._('The search index needs to be rebuilt.')}"
>
<mwc-button slot="action" @click="${this._handleReindexButton}"
>${this._('Settings')}</mwc-button
>
${this.canManageUsers
? html`
<mwc-button slot="action" @click="${this._handleReindexButton}"
>${this._('Settings')}</mwc-button
>
`
: ''}
></mwc-snackbar
>`
}
Expand Down

0 comments on commit 515b1c0

Please sign in to comment.