Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
janzenisaac committed Dec 12, 2023
1 parent fe144be commit 3f064ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions javascripts/discourse/components/modal/insert-jitsi.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { action } from "@ember/object";
import DButton from "discourse/components/d-button";
import DModal from "discourse/components/d-modal";
import TextField from "discourse/components/text-field";
import themePrefix from "discourse/helpers/theme-prefix";
import i18n from "discourse-common/helpers/i18n";

export default class InsertJitsi extends Component {
Expand Down
5 changes: 5 additions & 0 deletions javascripts/discourse/initializers/insert-jitsi.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/* global JitsiMeetExternalAPI */
import themePrefix from "discourse/helpers/theme-prefix";
import loadScript from "discourse/lib/load-script";
import { withPluginApi } from "discourse/lib/plugin-api";
import { iconHTML } from "discourse-common/lib/icon-library";
import I18n from "I18n";
import InsertJitsi from "../components/modal/insert-jitsi";

/* eslint-disable */
// prettier-ignore
function launchJitsi($elem, user, site) {
const data = $elem.data();
const domain = settings.meet_jitsi_domain;
Expand Down Expand Up @@ -63,6 +66,7 @@ function attachJitsi($elem, helper) {
});
}
}
/* eslint-enable */

export default {
name: "insert-jitsi",
Expand All @@ -71,6 +75,7 @@ export default {
withPluginApi("0.8.31", (api) => {
const currentUser = api.getCurrentUser();
const modal = api.container.lookup("service:modal");
const settings = api.container.lookup("site-settings:main");

if (settings.show_in_options_dropdown) {
if (settings.only_available_to_staff && currentUser?.staff) {
Expand Down

0 comments on commit 3f064ad

Please sign in to comment.