fix study tour for member (not owner)
parent
94b16cf999
commit
bdbf851be5
|
@ -44,7 +44,7 @@ lichess.studyTour = function(study) {
|
|||
attachTo: ".study__members right",
|
||||
when: onTab('members')
|
||||
},
|
||||
study.isContrib ? {
|
||||
study.isOwner ? {
|
||||
title: "Invite members",
|
||||
text: "By clicking the <i data-icon='O'></i> button.<br>" +
|
||||
"Then decide who can contribute or not.",
|
||||
|
|
|
@ -6,6 +6,7 @@ export function study(ctrl: AnalyseCtrl) {
|
|||
window.lichess['studyTour']({
|
||||
userId: ctrl.opts.userId,
|
||||
isContrib: ctrl.study!.members.canContribute(),
|
||||
isOwner: ctrl.study!.members.isOwner(),
|
||||
setTab: (tab: Tab) => {
|
||||
ctrl.study!.vm.tab(tab);
|
||||
ctrl.redraw();
|
||||
|
|
Loading…
Reference in New Issue