Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Public
Playground
Discourse Bbb
Commits
04d29231
Commit
04d29231
authored
Apr 14, 2020
by
Penar Musaraj
Browse files
Fix broken /login endpoint
parent
1f134cff
Changes
2
Hide whitespace changes
Inline
Side-by-side
assets/javascripts/discourse/initializers/bbb.js.es6
View file @
04d29231
...
...
@@ -83,28 +83,29 @@ export default {
id: "discourse-bbb",
});
if (siteSettings.bbb_staff_only && !currentUser.staff) {
return;
}
api.modifyClass("controller:composer", {
actions: {
insertBBBModal() {
showModal("insert-bbb").setProperties({
toolbarEvent: this.get("toolbarEvent"),
});
if (
!siteSettings.bbb_staff_only ||
(siteSettings.bbb_staff_only && currentUser && currentUser.staff)
) {
api.modifyClass("controller:composer", {
actions: {
insertBBBModal() {
showModal("insert-bbb").setProperties({
toolbarEvent: this.get("toolbarEvent"),
});
},
},
},
});
});
api.addToolbarPopupMenuOptionsCallback((controller) => {
return {
id: "insert-bbb",
icon: "video",
action: "insertBBBModal",
label: "bbb.composer_title",
};
});
api.addToolbarPopupMenuOptionsCallback((controller) => {
return {
id: "insert-bbb",
icon: "video",
action: "insertBBBModal",
label: "bbb.composer_title",
};
});
}
});
},
};
config/locales/client.en.yml
View file @
04d29231
en
:
js
:
bbb
:
composer_title
:
Add BigBlueButton
room
composer_title
:
Add BigBlueButton
meetingID
:
Meeting ID
button_text
:
Button label (optional)
attendeePW
:
Attendee password
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment