Skip to content

Commit 3e730dc

Browse files
committed
show BETA link for users with 'fullaccess' group (#1015)
1 parent 8005d81 commit 3e730dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/App.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,10 @@ export function top_right_menu(that,etextTitle,backUrl,etextres)
13341334

13351335
{ lang_selec(that) }
13361336

1337-
{ (!that.props.config || !that.props.config.chineseMirror) && <a target="_blank" href="https://bdrc.io/donation/" id="donate"><img src="/donate.svg"/>{I18n.t("topbar.donate")}</a> }
1337+
{that.props.auth && isGroup(that.props.auth, "fullaccess")
1338+
? <a target="_blank" href="https://beta.bdrc.io/" id="donate"><img style={{background:"white",borderRadius:"3px",verticalAlign:"-11px"}} width="33" src="/icons/BUDA-small.svg"/>BETA</a>
1339+
: (!that.props.config || !that.props.config.chineseMirror) && <a target="_blank" href="https://bdrc.io/donation/" id="donate"><img src="/donate.svg"/>{I18n.t("topbar.donate")}</a>
1340+
}
13381341

13391342
{ <div class="close" onClick={()=>that.setState({collapse:{...that.state.collapse,navMenu:false}})}>+</div> }
13401343
</div>

0 commit comments

Comments
 (0)