mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 17:59:29 +08:00
ExtensionPage: rename "Uninstall" to "Purge" (#3123)
https://i.imgur.com/aOOkqhk.png
This commit is contained in:
parent
1ff239df80
commit
227177d0a9
|
@ -141,8 +141,8 @@ export default class ExtensionPage extends AdminPage {
|
|||
items.add('version', <span className="ExtensionVersion">{this.extension.version}</span>);
|
||||
|
||||
if (!this.isEnabled()) {
|
||||
const uninstall = () => {
|
||||
if (confirm(app.translator.trans('core.admin.extension.confirm_uninstall'))) {
|
||||
const purge = () => {
|
||||
if (confirm(app.translator.trans('core.admin.extension.confirm_purge'))) {
|
||||
app
|
||||
.request({
|
||||
url: app.forum.attribute('apiUrl') + '/extensions/' + this.extension.id,
|
||||
|
@ -154,10 +154,11 @@ export default class ExtensionPage extends AdminPage {
|
|||
}
|
||||
};
|
||||
|
||||
// TODO v2.0: rename `uninstall` to `purge`
|
||||
items.add(
|
||||
'uninstall',
|
||||
<Button icon="fas fa-trash-alt" className="Button Button--primary" onclick={uninstall.bind(this)}>
|
||||
{app.translator.trans('core.admin.extension.uninstall_button')}
|
||||
<Button icon="fas fa-trash-alt" className="Button Button--primary" onclick={purge.bind(this)}>
|
||||
{app.translator.trans('core.admin.extension.purge_button')}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ core:
|
|||
# These translations are used on default extension pages.
|
||||
extension:
|
||||
configure_scopes: Configure Scopes
|
||||
confirm_uninstall: Uninstalling will remove all database entries and assets related to the extension. Are you sure you want to continue?
|
||||
confirm_purge: Purging will remove all database entries and assets related to the extension. It will not uninstall the extension; that must be done via Composer. Are you sure you want to continue?
|
||||
disabled: Disabled
|
||||
enable_to_see: Enable the extension to view and change settings.
|
||||
enabled: Enabled
|
||||
|
@ -130,7 +130,7 @@ core:
|
|||
no_settings: This extension has no settings.
|
||||
open_modal: Open Settings
|
||||
permissions_title: Permissions
|
||||
uninstall_button: Uninstall
|
||||
purge_button: Purge
|
||||
|
||||
# These translations are used in the secondary header.
|
||||
header:
|
||||
|
|
Loading…
Reference in New Issue
Block a user