rename Uninstall to Remove
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
parent
a392532e28
commit
a04413fd75
|
@ -448,11 +448,11 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
|||
}
|
||||
|
||||
OC.Settings.Apps.hideErrorMessage(appId);
|
||||
element.val(t('settings','Uninstalling …'));
|
||||
element.val(t('settings','Removing …'));
|
||||
$.post(OC.filePath('settings','ajax','uninstallapp.php'),{appid:appId},function(result) {
|
||||
if(!result || result.status !== 'success') {
|
||||
OC.Settings.Apps.showErrorMessage(appId, t('settings','Error while uninstalling app'));
|
||||
element.val(t('settings','Uninstall'));
|
||||
OC.Settings.Apps.showErrorMessage(appId, t('settings','Error while removing app'));
|
||||
element.val(t('settings','Remove'));
|
||||
} else {
|
||||
OC.Settings.Apps.rebuildNavigation();
|
||||
element.parents('#apps-list > .section').fadeOut(function() {
|
||||
|
|
|
@ -62,7 +62,7 @@ script(
|
|||
<div class="warning hidden"></div>
|
||||
<input class="update hidden" type="submit" value="<?php p($l->t('Update to %s', array('{{update}}'))); ?>" data-appid="{{id}}" />
|
||||
{{#if canUnInstall}}
|
||||
<input class="uninstall" type="submit" value="<?php p($l->t('Uninstall')); ?>" data-appid="{{id}}" />
|
||||
<input class="uninstall" type="submit" value="<?php p($l->t('Remove')); ?>" data-appid="{{id}}" />
|
||||
{{/if}}
|
||||
{{#if active}}
|
||||
<input class="enable" type="submit" data-appid="{{id}}" data-active="true" value="<?php p($l->t("Disable"));?>"/>
|
||||
|
@ -178,7 +178,7 @@ script(
|
|||
<input class="enable{{#if needsDownload}} needs-download{{/if}}" type="submit" data-appid="{{id}}" data-active="false" {{#unless canInstall}}disabled="disabled"{{/unless}} value="<?php p($l->t("Enable"));?>"/>
|
||||
{{/if}}
|
||||
{{#if canUnInstall}}
|
||||
<input class="uninstall" type="submit" value="<?php p($l->t('Uninstall app')); ?>" data-appid="{{id}}" />
|
||||
<input class="uninstall" type="submit" value="<?php p($l->t('Remove app')); ?>" data-appid="{{id}}" />
|
||||
{{/if}}
|
||||
|
||||
<div class="warning hidden"></div>
|
||||
|
|
Loading…
Reference in New Issue