Newer
Older
alert / js / src / common / registerWidget.js
@Réz István Réz István on 18 Nov 2021 727 bytes first commit
/*
 * This file is part of justoverclock/custom-html-widget.
 *
 * Copyright (c) 2021 Marco Colia.
 * https://flarum.it
 *
 * For the full copyright and license information, please view the LICENSE.md
 * file that was distributed with this source code.
 */
import Widgets from 'flarum/extensions/afrux-forum-widgets-core/common/extend/Widgets';
import CustomHtmlWidget from './components/CustomHtmlAlertWidget';

export default function (app) {
    new Widgets()
        .add({
            key: 'CustomHtmlAlert',
            component: CustomHtmlAlertWidget,
            isDisabled: false,
            isUnique: true,
            placement: 'end',
            position: 1,
        })
        .extend(app, 'ubuntuhu-alert');
}