mirror of
https://github.com/flarum/framework.git
synced 2025-02-08 13:58:32 +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>);
|
items.add('version', <span className="ExtensionVersion">{this.extension.version}</span>);
|
||||||
|
|
||||||
if (!this.isEnabled()) {
|
if (!this.isEnabled()) {
|
||||||
const uninstall = () => {
|
const purge = () => {
|
||||||
if (confirm(app.translator.trans('core.admin.extension.confirm_uninstall'))) {
|
if (confirm(app.translator.trans('core.admin.extension.confirm_purge'))) {
|
||||||
app
|
app
|
||||||
.request({
|
.request({
|
||||||
url: app.forum.attribute('apiUrl') + '/extensions/' + this.extension.id,
|
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(
|
items.add(
|
||||||
'uninstall',
|
'uninstall',
|
||||||
<Button icon="fas fa-trash-alt" className="Button Button--primary" onclick={uninstall.bind(this)}>
|
<Button icon="fas fa-trash-alt" className="Button Button--primary" onclick={purge.bind(this)}>
|
||||||
{app.translator.trans('core.admin.extension.uninstall_button')}
|
{app.translator.trans('core.admin.extension.purge_button')}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@ core:
|
||||||
# These translations are used on default extension pages.
|
# These translations are used on default extension pages.
|
||||||
extension:
|
extension:
|
||||||
configure_scopes: Configure Scopes
|
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
|
disabled: Disabled
|
||||||
enable_to_see: Enable the extension to view and change settings.
|
enable_to_see: Enable the extension to view and change settings.
|
||||||
enabled: Enabled
|
enabled: Enabled
|
||||||
|
@ -130,7 +130,7 @@ core:
|
||||||
no_settings: This extension has no settings.
|
no_settings: This extension has no settings.
|
||||||
open_modal: Open Settings
|
open_modal: Open Settings
|
||||||
permissions_title: Permissions
|
permissions_title: Permissions
|
||||||
uninstall_button: Uninstall
|
purge_button: Purge
|
||||||
|
|
||||||
# These translations are used in the secondary header.
|
# These translations are used in the secondary header.
|
||||||
header:
|
header:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user