mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 02:10:24 +00:00
delete useless translation (#6542)
This commit is contained in:
@@ -76,7 +76,7 @@ class LogsExportExcelDialog extends React.Component {
|
|||||||
if (error_msg && error_msg !== 'Internal Server Error') {
|
if (error_msg && error_msg !== 'Internal Server Error') {
|
||||||
toaster.danger(error_msg);
|
toaster.danger(error_msg);
|
||||||
} else {
|
} else {
|
||||||
toaster.danger(gettext('Internal Server Error.'));
|
toaster.danger(gettext('Internal Server Error'));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let errMessage = Utils.getErrorMsg(error);
|
let errMessage = Utils.getErrorMsg(error);
|
||||||
|
@@ -57,7 +57,7 @@ class Plans extends Component {
|
|||||||
assetQuota = (assetQuotaUnitCount) * currentPlan.asset_quota_unit;
|
assetQuota = (assetQuotaUnitCount) * currentPlan.asset_quota_unit;
|
||||||
totalAmount = assetQuotaUnitCount * currentPlan.price_per_asset_quota_unit;
|
totalAmount = assetQuotaUnitCount * currentPlan.price_per_asset_quota_unit;
|
||||||
} else {
|
} else {
|
||||||
toaster.danger(gettext('Internal Server Error.'));
|
toaster.danger(gettext('Internal Server Error'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -264,7 +264,7 @@ class Plans extends Component {
|
|||||||
} else if (paymentType === 'buy_quota') {
|
} else if (paymentType === 'buy_quota') {
|
||||||
return this.renderBuyQuota();
|
return this.renderBuyQuota();
|
||||||
} else {
|
} else {
|
||||||
toaster.danger(gettext('Internal Server Error.'));
|
toaster.danger(gettext('Internal Server Error'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -9,13 +9,13 @@ import moment from 'moment';
|
|||||||
const OPERATIONS = [
|
const OPERATIONS = [
|
||||||
{
|
{
|
||||||
value: 'active',
|
value: 'active',
|
||||||
text: gettext('active'),
|
text: gettext('Active'),
|
||||||
is_active: true,
|
is_active: true,
|
||||||
isSelected: false,
|
isSelected: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'inactive',
|
value: 'inactive',
|
||||||
text: gettext('inactive'),
|
text: gettext('Inactive'),
|
||||||
is_active: false,
|
is_active: false,
|
||||||
isSelected: false,
|
isSelected: false,
|
||||||
},
|
},
|
||||||
|
@@ -83,6 +83,6 @@ class RepoAutoDeleteView(APIView):
|
|||||||
repo_auto_delete, _ = RepoAutoDelete.objects.update_or_create(repo_id=repo_id, defaults={'days':auto_delete_days})
|
repo_auto_delete, _ = RepoAutoDelete.objects.update_or_create(repo_id=repo_id, defaults={'days':auto_delete_days})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error.')
|
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error')
|
||||||
|
|
||||||
return Response({'auto_delete_days':repo_auto_delete.days})
|
return Response({'auto_delete_days':repo_auto_delete.days})
|
@@ -31,7 +31,7 @@ def query_dns_txt_record(domain):
|
|||||||
return True, api_error(status.HTTP_404_NOT_FOUND, '%s does not exist' % domain)
|
return True, api_error(status.HTTP_404_NOT_FOUND, '%s does not exist' % domain)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
return True, api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error.')
|
return True, api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error')
|
||||||
|
|
||||||
|
|
||||||
class OrgSAMLConfigView(APIView):
|
class OrgSAMLConfigView(APIView):
|
||||||
|
Reference in New Issue
Block a user