Newer
Older
alert / js / node_modules / flarum / admin / components / UploadImageButton.d.ts
@Réz István Réz István on 18 Nov 2021 638 bytes first commit
export default class UploadImageButton extends Button {
    loading: boolean;
    /**
     * Prompt the user to upload an image.
     */
    upload(): void;
    /**
     * Remove the logo.
     */
    remove(): void;
    resourceUrl(): string;
    /**
     * After a successful upload/removal, reload the page.
     *
     * @param {Object} response
     * @protected
     */
    protected success(response: any): void;
    /**
     * If upload/removal fails, stop loading.
     *
     * @param {Object} response
     * @protected
     */
    protected failure(response: any): void;
}
import Button from "../../common/components/Button";