mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
c3a684c7ed
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
28 lines
644 B
TypeScript
28 lines
644 B
TypeScript
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: Object): void;
|
|
/**
|
|
* If upload/removal fails, stop loading.
|
|
*
|
|
* @param {Object} response
|
|
* @protected
|
|
*/
|
|
protected failure(response: Object): void;
|
|
}
|
|
import Button from "../../common/components/Button";
|